pgsql: Don't override arguments set via options with positional argumen

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Don't override arguments set via options with positional argumen
Дата
Msg-id E1SKH2k-0003T4-4C@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Don't override arguments set via options with positional arguments.

A number of utility programs were rather careless about paremeters
that can be set via both an option argument and a positional
argument. This leads to results which can violate the Principal
Of Least Astonishment. These changes refuse to use positional
arguments to override settings that have been made via positional
arguments. The changes are backpatched to all live branches.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/a146e7be893446521362d60d302d50dfe1001f13

Modified Files
--------------
src/bin/initdb/initdb.c      |    7 +++++--
src/bin/scripts/clusterdb.c  |   26 +++++++++++++++-----------
src/bin/scripts/createlang.c |   14 ++++++++++++--
src/bin/scripts/droplang.c   |   14 ++++++++++++--
src/bin/scripts/reindexdb.c  |   25 +++++++++++++++----------
src/bin/scripts/vacuumdb.c   |   27 ++++++++++++++++-----------
6 files changed, 75 insertions(+), 38 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Don't override arguments set via options with positional argumen
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Don't override arguments set via options with positional argumen