From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | Mike Mascari <mascarm(at)mascari(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: I remember why I suggested CREATE FUNCTION...AS NULL |
Date: | 2000-09-09 01:48:30 |
Message-ID: | 27642.968464110@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
>> ALTER FUNCTION numpeople() AS
>> 'SELECT COUNT(*) FROM managers' LANGUAGE 'plpgsql';
> Actually, I think this would still work, because it
> doesn't check the table name existance until it's
> used for the first time, not when it's created.
But SQL-language function bodies are checked at entry, not only
at first use. (I consider it a deficiency of plpgsql that it
doesn't do likewise.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2000-09-09 02:02:42 | Fw: I remember why I suggested CREATE FUNCTION...AS NULL |
Previous Message | Tom Lane | 2000-09-09 01:43:03 | Re: I remember why I suggested CREATE FUNCTION...AS NULL |