]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Don't override arguments set via options with positional arguments.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 17 Apr 2012 22:37:42 +0000 (18:37 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 17 Apr 2012 22:37:42 +0000 (18:37 -0400)
commita146e7be893446521362d60d302d50dfe1001f13
tree0abc6a97b89e9706b9d21282bf7f3c7f61b84702
parent10fcfada235af6186c9474230483ab0fe5c9610d
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.
src/bin/initdb/initdb.c
src/bin/scripts/clusterdb.c
src/bin/scripts/createlang.c
src/bin/scripts/droplang.c
src/bin/scripts/reindexdb.c
src/bin/scripts/vacuumdb.c