Re: proposal - assign result of query to psql variable - Mailing list pgsql-hackers

From Tom Lane
Subject Re: proposal - assign result of query to psql variable
Date
Msg-id 11009.1359918147@sss.pgh.pa.us
Whole thread Raw
In response to Re: proposal - assign result of query to psql variable  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal - assign result of query to psql variable
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> now missing variables is replaced by variable's name. We can implement
> some pset option - some like define what do with missing variable

> \pset missing_variable (use_name | use_null | error )

No, it isn't "replaced by variable's name".  What actually happens is we
don't attempt a replacement unless the string after the colon matches an
existing variable.  Tampering with that seems dangerous and foolish.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: autovacuum not prioritising for-wraparound tables
Next
From: Pavel Stehule
Date:
Subject: Re: proposal - assign result of query to psql variable