Re: proposal \gcsv
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Daniel Verite <daniel@manitou-mail.org>,
Vik Fearing <vik@postgresfriends.org>, Erik Rijkers <er@xs4all.nl>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2020-04-07T00:28:26Z
Lists: pgsql-hackers
Attachments
- 0001-pset-option-infrastructure-1.patch (text/x-diff) patch 0001
- 0002-pset-options-for-slash-g-1.patch (text/x-diff) patch 0002
Here's a WIP patch for the parenthesized-options route. I realized that if we make the options be single words in the form name=value, we can easily handle the shortcut forms with no value. So that's what this does. What this does *not* do is offer any solution to the question of how to put a right paren as the last character of a pset option value. I don't really see any easy way to handle that, but maybe we can punt for now. Also no docs or test cases, but I see no point in putting effort into that in advance of consensus that this is what we want. 0001 is some save/restore infrastructure that we'd need for pretty much all of the proposals on the table, and then 0002 improves the command itself. regards, tom lane
Commits
-
Allow psql's \g and \gx commands to transiently change \pset options.
- b63c293bcbd7 13.0 landed