]> granicus.if.org Git - postgresql/commit
Don't override arguments set via options with positional arguments.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 17 Apr 2012 22:30:34 +0000 (18:30 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 17 Apr 2012 22:30:34 +0000 (18:30 -0400)
commit1b37a8c3cc4f0615f80d6007e2bbd47c6bd7e1e3
treef8757aec163b2d6582031e1d39ea5c63e4680a5c
parentfe546f3da6a5ff1d879f587728f74ec457f0ee5f
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