2009/9/20 Dimitri Fontaine <dfonta...@hi-media.com>: > Hi, > > Tom Lane <t...@sss.pgh.pa.us> writes: >> Andrew Dunstan <and...@dunslane.net> writes: >>> Really? That wasn't my expectation at all. I expected that the code >>> would in effect be always returning void. I think you're moving the >>> goalposts a bit here. I don't think we need a RETURNS clause on it for >>> it to be useful. > > Yes it'd be useful without it too, and this can come in later in the > game, granted too. Will continue review without it.
Hello I think so RETURN there has some sense. It should be optional, and have to specify exit status. So return non zero value means exit psql with returned value as exit status. It would be interesting, if we could access from anonymous block some psql internal variables. regards Pavel Stehule -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers