Re: show() function - Mailing list pgsql-patches

From Tom Lane
Subject Re: show() function
Date
Msg-id 16419.1025130878@sss.pgh.pa.us
Whole thread Raw
In response to Re: show() function  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: show() function  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Peter Eisentraut <peter_e@gmx.net> writes:
> Is there anything fundamentally difficult with supporting "PROCEDURE
> foo()" as equivalent with "FUNCTION foo() RETURNS opaque" and "CALL foo()"
> as equivalent with "SELECT foo()" and throw away the result.

I'd like to see us *not* overload "opaque" with yet another meaning;
see past rants on subject.  But as long as there was a distinguishable
representation of "returns void" in pg_proc, I'd see no problem with the
above.

plpgsql presently spells "CALL" as "PERFORM"; should we stick with that
precedent?

            regards, tom lane



pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: several minor cleanups
Next
From: Joe Conway
Date:
Subject: Re: show() function