Re: Improvements in psql hooks for variables
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Daniel Verite" <daniel@manitou-mail.org>
Cc: "Rahila Syed" <rahilasyed90@gmail.com>,
"Stephen Frost" <sfrost@snowman.net>,
"Ashutosh Bapat" <ashutosh.bapat@enterprisedb.com>,
"pgsql-hackers" <pgsql-hackers@postgresql.org>,
"Andrew Dunstan" <andrew@dunslane.net>
Date: 2017-01-31T22:13:06Z
Lists: pgsql-hackers
Attachments
- keep-psql-variable-list-sorted-by-name.patch (text/x-diff) patch
- (unnamed) (text/plain)
BTW ... while I've been fooling with this issue, I've gotten a bit annoyed at the fact that "\set" prints the variables in, essentially, creation order. That makes the list ugly and hard to find things in, and it exposes some psql implementation details to users. I propose the attached simple patch to keep the list in name order instead. (This is on top of my previous patch, but it'd be pretty trivial to modify to apply against HEAD.) regards, tom lane
Commits
-
Clean up psql's behavior for a few more control variables.
- fd6cd698031d 10.0 landed
-
Make psql's \set display variables in alphabetical order.
- c3e3844a92fe 10.0 landed
-
Improve psql's behavior for \set and \unset of its control variables.
- 86322dc7e013 10.0 landed
-
Make psql reject attempts to set special variables to invalid values.
- 511ae628f31b 10.0 landed