postgresql/src
Heikki Linnakangas add1b052e2 Allow "dbname" from connection string to be overridden in PQconnectDBParams
If the "dbname" attribute in PQconnectDBParams contained a connection string
or URI (and expand_dbname = TRUE), the database name from the connection
string could not be overridden by a subsequent "dbname" keyword in the
array. That was not intentional; all other options can be overridden.
Furthermore, any subsequent "dbname" caused the connection string from the
first dbname value to be processed again, overriding any values for the same
options that were given between the connection string and the second dbname
option.

In the passing, clarify in the docs that only the first dbname option in the
array is parsed as a connection string.

Alex Shulgin. Backpatch to all supported versions.
2014-11-25 17:39:44 +02:00
..
backend Make Port->ssl_in_use available, even when built with !USE_SSL 2014-11-25 09:46:11 +02:00
bin Fix memory leaks introduced by commit eca2b9b 2014-11-23 13:47:08 -05:00
common Small message fixes 2014-08-09 00:07:00 -04:00
include Make Port->ssl_in_use available, even when built with !USE_SSL 2014-11-25 09:46:11 +02:00
interfaces Allow "dbname" from connection string to be overridden in PQconnectDBParams 2014-11-25 17:39:44 +02:00
makefiles Fix suggested layout for PGXS makefile 2014-11-19 22:21:54 -05:00
pl Get rid of redundant production in plpgsql grammar. 2014-11-23 15:31:36 -05:00
port Fix win32setlocale.c const-related warnings. 2014-11-02 21:43:20 -05:00
template Remove Alpha and Tru64 support. 2014-06-28 21:46:15 +02:00
test Suppress DROP CASCADE notices in regression tests 2014-11-25 10:04:49 -05:00
timezone Update time zone data files to tzdata release 2014j. 2014-11-17 12:09:12 -05:00
tools Update comments in find_typedef. 2014-11-18 15:51:45 -05:00
tutorial Adjust blank lines around PG_MODULE_MAGIC defines, for consistency 2014-07-10 14:02:08 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Add configure --enable-tap-tests option 2014-11-02 09:17:26 -05:00
Makefile.shlib Clarify .def file comments. 2014-11-02 21:43:33 -05:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00