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 20927.1359221128@sss.pgh.pa.us
Whole thread Raw
In response to Re: proposal - assign result of query to psql variable  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: proposal - assign result of query to psql variable
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> +1. This looks quite nifty. Maybe useful too to have a default prefix 
> via some setting.

Meh.  I would expect that "\gset :foo" would work to specify a computed
prefix if you wanted it --- isn't that sufficient indirection?  I'm not
thrilled with further expanding the set of magic variables in psql.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: plpgsql_check_function - rebase for 9.3
Next
From: Pavel Stehule
Date:
Subject: Re: proposal - assign result of query to psql variable