Re: Variable substitution in psql backtick expansion

Daniel Verite <daniel@manitou-mail.org>

From: "Daniel Verite" <daniel@manitou-mail.org>
To: "Fabien COELHO" <coelho@cri.ensmp.fr>
Cc: "Corey Huinker" <corey.huinker@gmail.com>,"Pavel Stehule" <pavel.stehule@gmail.com>,"Greg Stark" <stark@mit.edu>,"Tom Lane" <tgl@sss.pgh.pa.us>,"PostgreSQL Developers" <pgsql-hackers@postgresql.org>
Date: 2017-04-14T16:37:09Z
Lists: pgsql-hackers
	Fabien COELHO wrote:

> Pavel also suggested some support for TEXT, although I would like to see a 
> use case. That could be another extension to the engine.

SQLSTATE is text.

Also when issuing "psql -v someoption=value -f script", it's reasonable
to want to compare :someoptionvar to 'somevalue' in the script.


Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


Commits

  1. Add psql variables showing server version and psql version.

  2. Reformat psql's --help=variables output.

  3. Remove reinvention of stringify macro.

  4. Allow psql variable substitution to occur in backtick command strings.