1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-29 16:21:20 +03:00
Heikki Linnakangas 9b468bcec1 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:04 +02:00
..
2010-09-20 22:08:53 +02:00
2013-10-21 06:23:06 -04:00
2010-09-20 22:08:53 +02:00
2013-11-27 11:15:09 +01:00
2012-12-22 15:01:45 -05:00
2010-09-20 22:08:53 +02:00
2010-09-20 22:08:53 +02:00
2012-10-17 09:19:24 +01:00
2010-09-20 22:08:53 +02:00
2014-01-07 16:05:29 -05:00
2014-08-30 11:04:12 -05:00
2012-12-08 07:38:02 -05:00
2014-08-30 11:04:12 -05:00
2012-04-24 21:16:07 +03:00
2014-11-01 11:33:48 -04:00
2014-08-30 11:04:12 -05:00
2014-08-30 11:04:12 -05:00
2012-04-12 10:43:39 -04:00
2014-08-30 11:04:12 -05:00
2014-08-30 11:04:12 -05:00

<!-- doc/src/sgml/README.links -->

Linking within SGML documents can be confusing, so here is a summary:


Intra-document Linking
----------------------

<xref>
	use to get chapter/section # from the title of the target
	link, or xreflabel if defined at the target; has no close tag
	http://www.oasis-open.org/docbook/documentation/reference/html/xref.html

<link>
	use to supply text for the link, requires </link>
	http://www.oasis-open.org/docbook/documentation/reference/html/link.html

linkend=
	controls the target of the link/xref, required

endterm=
	for <xref>, allows the text of the link/xref to be taken from a
	different link target title


External Linking
----------------

<ulink>
	like <link>, but uses a URL (not a document target);  requires
	</ulink>; if no text is specified, the URL appears as the link
	text
	http://www.oasis-open.org/docbook/documentation/reference/html/ulink.html

url=
	used by <ulink> to specify the URL, required


Guidelines
----------

o  If you want to supply text, use <link>, else <xref>
o  Do not use text with <ulink> so the URL appears in printed output
o  Specific nouns like GUC variables, SQL commands, and contrib modules
   usually have xreflabels