Andrew Dunstan <and...@dunslane.net> writes: > Pavel Stehule wrote: >> why we need DO statement? Why not just $$ $$. Only string literal >> cannot be statement too, so DO is unnecessary.
> I'm also not sure I want to be trying to execute any arbitrary string > that accidentally gets placed there because someone forgot to put a > keyword or accidentally deleted it. That's my feeling as well. Also, I don't think it is sane to allow options (like "LANGUAGE foo") on a standalone string constant. Yeah, we could persuade bison to do it, but that doesn't make it a good idea. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers