postgresql/src/bin
Tom Lane 28551797a4 Improve consistency of parsing of psql's magic variables.
For simple boolean variables such as ON_ERROR_STOP, psql has for a long
time recognized variant spellings of "on" and "off" (such as "1"/"0"),
and it also made a point of warning you if you'd misspelled the setting.
But these conveniences did not exist for other keyword-valued variables.
In particular, though ECHO_HIDDEN and ON_ERROR_ROLLBACK include "on" and
"off" as possible values, none of the alternative spellings for those were
recognized; and to make matters worse the code would just silently assume
"on" was meant for any unrecognized spelling.  Several people have reported
getting bitten by this, so let's fix it.  In detail, this patch:

* Allows all spellings recognized by ParseVariableBool() for ECHO_HIDDEN
and ON_ERROR_ROLLBACK.

* Reports a warning for unrecognized values for COMP_KEYWORD_CASE, ECHO,
ECHO_HIDDEN, HISTCONTROL, ON_ERROR_ROLLBACK, and VERBOSITY.

* Recognizes all values for all these variables case-insensitively;
previously there was a mishmash of case-sensitive and case-insensitive
behaviors.

Back-patch to all supported branches.  There is a small risk of breaking
existing scripts that were accidentally failing to malfunction; but the
consensus is that the chance of detecting real problems and preventing
future mistakes outweighs this.
2014-12-31 12:18:50 -05:00
..
initdb Fix another poorly worded error message. 2014-12-17 13:22:07 -05:00
pg_basebackup Translation updates 2014-12-15 16:19:59 -05:00
pg_config Translation updates 2014-12-15 00:25:35 -05:00
pg_controldata Translation updates 2014-12-15 00:25:35 -05:00
pg_ctl Fix previous commit for TAP test suites in VPATH builds. 2014-12-18 01:24:57 -05:00
pg_dump Revert "Use a bitmask to represent role attributes" 2014-12-23 15:35:49 -03:00
pg_resetxlog Translation updates 2014-12-15 00:25:35 -05:00
pgevent Properly use DEFAULT_EVENT_SOURCE in pgevent.c 2014-07-21 12:24:00 +02:00
psql Improve consistency of parsing of psql's magic variables. 2014-12-31 12:18:50 -05:00
scripts Translation updates 2014-12-15 00:25:35 -05:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00