Pavel Stehule wrote:
I would to use this statement for some non trivial maintenance tasks - and I would to use external parameter (from command line). My question is - what is a good way for passing some value (from command line) to DO statement body? I accept any mechanism.
See my earlier comment:
Perhaps part of the problem is that psql can't interpolate its variable into strings. Solving that might lessen the impetus for this, and have other uses besides.
cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers