postgresql/doc/src/sgml
Tom Lane 9e8a18d692 Doc: remove misleading info about ecpg's CONNECT/DISCONNECT DEFAULT.
As far as I can see, ecpg has no notion of a "default" open
connection.  You can do "CONNECT TO DEFAULT" but that just specifies
letting libpq use all its default connection parameters --- the
resulting connection is not special subsequently.  In particular,
SET CONNECTION = DEFAULT and DISCONNECT DEFAULT simply act on a
connection named DEFAULT, if you've made one; they do not have
special lookup rules.  But the documentation of these commands
makes it look like they do.

Simplest fix, I think, is just to remove the paras suggesting that
DEFAULT is special here.

Also, SET CONNECTION *does* have one special lookup rule, which
is that it recognizes CURRENT as an alias for the currently selected
connection.  SET CONNECTION = CURRENT is a no-op, so it's pretty
useless, but nonetheless it does something different from selecting
a connection by name; so we'd better document it.

Per report from Sylvain Frandaz.  Back-patch to all supported
versions.

Discussion: https://postgr.es/m/169824721149.1769274.1553568436817652238@wrigleys.postgresql.org
2023-10-25 17:34:47 -04:00
..
ref doc: Fix some typos and grammar 2023-10-25 09:41:17 +09:00
.gitignore git-ignore intermediate files from new docs toolchain. 2017-05-15 15:48:40 -04:00
acronyms.sgml doc: add section about heap-only tuples (HOT) 2022-08-12 15:05:12 -04:00
adminpack.sgml Support new default roles with adminpack 2018-04-06 14:47:10 -04:00
advanced.sgml doc: adjust "cities" example to be consistent with other SQL 2021-07-02 20:42:45 -04:00
amcheck.sgml Doc: Correct description of amcheck example query. 2018-08-08 12:56:23 -07:00
appendix-obsolete-pgreceivexlog.sgml Add a docs section for obsoleted and renamed functions and settings 2021-03-31 16:23:09 -04:00
appendix-obsolete-pgresetxlog.sgml Add a docs section for obsoleted and renamed functions and settings 2021-03-31 16:23:09 -04:00
appendix-obsolete-pgxlogdump.sgml Add a docs section for obsoleted and renamed functions and settings 2021-03-31 16:23:09 -04:00
appendix-obsolete.sgml Add a docs section for obsoleted and renamed functions and settings 2021-03-31 16:23:09 -04:00
arch-dev.sgml Fix missing space in docs. 2021-11-24 18:34:15 +02:00
array.sgml docs: remove use of escape strings and use bytea hex output 2018-09-21 19:55:07 -04:00
auth-delay.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
auto-explain.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
backup.sgml doc: add example of using pg_dump with GNU split and gzip 2021-08-03 10:57:32 -04:00
bgworker.sgml docs: clarify bgw_restart_time documentation 2021-08-27 22:50:19 +02:00
biblio.sgml Fix title in reference section 2020-09-10 14:16:38 +02:00
bki.sgml Assert that we don't insert nulls into attnotnull catalog columns. 2020-07-21 12:38:08 -04:00
bloom.sgml doc: make blooms docs match reality 2020-10-26 19:17:05 -04:00
brin.sgml doc: Update uses of the word "procedure" 2018-08-22 14:45:07 +02:00
btree-gin.sgml Add support of bool, bpchar, name and uuid to btree_gin 2018-04-05 18:19:10 +03:00
btree-gist.sgml Convert SGML IDs to lower case 2017-10-20 19:26:10 -04:00
btree.sgml Doc: fix meaning of acronym "btree". 2019-01-08 09:55:18 +09:00
catalogs.sgml doc: Fix link to catalog table 2023-10-25 11:33:24 +02:00
charset.sgml doc: remove URL for ICU explorer/locexp 2021-10-04 17:10:59 -04:00
citext.sgml Update gratuitous use of MD5 in documentation 2018-02-22 11:34:54 -05:00
client-auth.sgml doc: clarify that SSPI and GSSAPI are interchangeable 2023-10-10 16:51:08 -04:00
config.sgml Doc: fix grammatical errors for enable_partitionwise_aggregate 2023-10-12 21:17:49 +13:00
contrib-spi.sgml doc: in contrib-spi, mention and link to the meaning of SPI 2018-01-31 16:54:33 -05:00
contrib.sgml doc: Fix typos 2020-11-25 09:54:50 +01:00
cube.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:49 +09:00
custom-scan.sgml Doc: update documentation for creating custom scan paths. 2023-08-03 17:45:09 +09:00
datatype.sgml doc: clarify handling of time zones with "time with time zone" 2023-09-26 19:23:58 -04:00
datetime.sgml Doc: fix bogus example about ambiguous timestamps. 2022-01-10 11:46:38 -05:00
dblink.sgml Misc documentation fixes. 2020-10-19 19:29:56 +03:00
ddl.sgml doc: Update error messages in RLS examples 2023-04-05 14:20:33 +07:00
dfunc.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:49 +09:00
dict-int.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
dict-xsyn.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
diskusage.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
dml.sgml Fix typo 2018-06-20 16:06:03 +02:00
docguide.sgml doc: Fix XML_CATALOG_FILES env var for Apple Silicon machines 2023-03-27 21:35:34 +02:00
earthdistance.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:43 -04:00
ecpg.sgml Doc: remove misleading info about ecpg's CONNECT/DISCONNECT DEFAULT. 2023-10-25 17:34:47 -04:00
errcodes.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
event-trigger.sgml doc: Add ALTER/DROP ROUTINE to the event trigger matrix 2022-03-09 14:59:30 +09:00
extend.sgml In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
external-projects.sgml doc: Replace list of drivers and PLs with wiki link 2023-08-23 14:13:07 +02:00
fdwhandler.sgml Clamp total-tuples estimates for foreign tables to ensure planner sanity. 2020-07-03 19:01:21 -04:00
features.sgml Improve documentation about our XML functionality 2019-09-12 17:31:31 -03:00
file-fdw.sgml doc: cross-link file-fdw and CSV config log sections 2020-08-31 16:59:58 -04:00
filelist.sgml revert: add transaction processing chapter with internals info 2022-12-01 10:45:07 -05:00
func.sgml doc: Change statistics function xref to the right target 2023-09-29 15:55:37 +02:00
fuzzystrmatch.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
generate-errcodes-table.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
generic-wal.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
geqo.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:49 +09:00
gin.sgml Misc documentation fixes. 2020-10-19 19:29:56 +03:00
gist.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
hash.sgml Doc: Hash Indexes. 2021-07-05 10:11:49 +05:30
high-availability.sgml doc: clarify wording about phantom reads 2022-06-22 14:33:35 -04:00
history.sgml doc: rename "decades" to be more generic 2023-06-23 22:50:55 -04:00
hstore.sgml doc: Clarify use of ACCESS EXCLUSIVE lock in various sections 2021-04-01 15:29:01 +09:00
indexam.sgml doc: add section about heap-only tuples (HOT) 2022-08-12 15:05:12 -04:00
indices.sgml doc: mention "bloom" as a possible index access method 2022-08-31 22:35:09 -04:00
info.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
information_schema.sgml Fix documentation of check_option in information_schema.views 2019-06-01 15:33:58 -04:00
install-windows.sgml doc: Tell about "vcregress taptest" for regression tests on Windows 2023-09-26 08:16:49 +09:00
installation.sgml Reject bogus output from uuid_create(3). 2022-09-09 12:41:36 -04:00
intagg.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
intarray.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
intro.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:49 +09:00
isn.sgml Misc documentation fixes. 2020-10-19 19:29:56 +03:00
jit.sgml Fix issues around EXPLAIN with JIT. 2018-10-03 13:11:44 -07:00
json.sgml Transforms for jsonb to PL/Perl 2018-04-03 09:47:18 -04:00
keywords.sgml Update key words table for version 11 2018-05-21 12:14:46 -04:00
legal.sgml Update copyright for 2023 2023-01-02 15:00:36 -05:00
libpq.sgml doc: PQinitOpenSSL and PQinitSSL are obsolete in OpenSSL 1.1.0+ 2023-04-14 10:44:00 +02:00
lo.sgml Change PROCEDURE to FUNCTION in CREATE TRIGGER syntax 2018-08-22 14:45:07 +02:00
lobj.sgml Doc: fix typos. 2021-09-19 11:36:53 -04:00
logical-replication.sgml Doc: Clarify the behavior of triggers/rules in a logical subscriber. 2023-06-22 11:49:10 +05:30
logicaldecoding.sgml Doc: Update caveats in synchronous logical replication. 2021-06-24 09:49:23 +05:30
ltree.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:43 -04:00
maintenance.sgml doc: document the need to analyze partitioned tables 2023-10-10 15:14:18 -04:00
Makefile Stop recommending auto-download of DTD files, and indeed disable it. 2023-02-08 17:15:27 -05:00
manage-ag.sgml docs: improve description of how to handle multiple databases 2020-08-21 20:23:09 -04:00
mk_feature_tables.pl Reindent Perl files with perltidy version 20170521. 2018-04-25 14:00:19 -04:00
monitoring.sgml doc: Add more details about pg_stat_get_xact_blocks_{fetched,hit} 2023-04-05 07:59:57 +09:00
mvcc.sgml doc: mention the pg_locks lock names in parentheses 2022-07-14 12:08:54 -04:00
nls.sgml doc: improve NLS instruction wording 2021-01-05 14:26:37 -05:00
notation.sgml doc: clarify syntax notation, particularly parentheses 2022-02-02 21:53:51 -05:00
oid2name.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
pageinspect.sgml Fix some typos, grammar and style in docs and comments 2021-02-24 16:14:03 +09:00
parallel.sgml Fix typos in comments, code and documentation 2023-01-03 16:26:38 +09:00
passwordcheck.sgml doc: Update redirecting links 2018-07-16 10:44:06 +02:00
perform.sgml doc: use wording "restore" instead of "reload" of dumps 2022-07-21 14:55:22 -04:00
pgbuffercache.sgml Fix inconsistency in pg_buffercache docs. 2020-05-08 08:56:03 +05:30
pgcrypto.sgml Add alternative output for OpenSSL 3 without legacy loaded 2021-09-25 11:27:28 +02:00
pgfreespacemap.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
pgprewarm.sgml doc: add pg_prewarm example 2022-07-08 18:36:27 -04:00
pgrowlocks.sgml revert: add transaction processing chapter with internals info 2022-12-01 10:45:07 -05:00
pgstandby.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
pgstatstatements.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
pgstattuple.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
pgtrgm.sgml Add docs of missing GUC to pgtrgm.sgml 2019-06-10 20:20:33 +03:00
pgvisibility.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
planstats.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
plhandler.sgml doc: use wording "restore" instead of "reload" of dumps 2022-07-21 14:55:22 -04:00
plperl.sgml Doc: clarify behavior of row-limit arguments in the PLs' SPI wrappers. 2023-05-02 17:55:01 -04:00
plpgsql.sgml Doc: use CURRENT_USER not USER in plpgsql trigger examples. 2023-10-09 11:30:35 -04:00
plpython.sgml Doc: clarify behavior of row-limit arguments in the PLs' SPI wrappers. 2023-05-02 17:55:01 -04:00
pltcl.sgml Doc: clarify behavior of row-limit arguments in the PLs' SPI wrappers. 2023-05-02 17:55:01 -04:00
postgres-fdw.sgml Doc: Update documentation for modifying postgres_fdw foreign tables. 2022-02-16 15:15:07 +09:00
postgres.sgml revert: add transaction processing chapter with internals info 2022-12-01 10:45:07 -05:00
problems.sgml Doc: Fix various typos 2019-08-20 13:45:58 +09:00
protocol.sgml Rethink handling of [Prevent|Is]InTransactionBlock in pipeline mode. 2022-12-13 14:23:59 -05:00
queries.sgml doc: add missing "the" in LATERAL sentence. 2023-06-01 10:22:16 -04:00
query.sgml Doc: improve tutorial section about grouped aggregates. 2022-11-08 18:25:03 -05:00
rangetypes.sgml docs: clarify infinite range values from data-type infinities 2019-12-27 14:33:30 -05:00
README.links docs: improve xref description for xreflabel and refentry links 2014-01-30 12:26:18 -05:00
recovery-config.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
reference.sgml Move pg_verify_checksum docs to Server utils 2018-06-20 14:28:56 +02:00
regress.sgml doc: mention libpq regression tests 2023-09-05 13:05:27 -04:00
release-11.sgml Last-minute updates for release notes. 2023-08-07 12:50:15 -04:00
release.sgml Simplify release-note links to back branches. 2019-03-09 18:42:19 -05:00
replication-origins.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
rowtypes.sgml docs: remove use of escape strings and use bytea hex output 2018-09-21 19:55:07 -04:00
rules.sgml Doc: improve documentation about ORDER BY in matviews. 2021-11-29 12:13:13 -05:00
runtime.sgml Doc: improve recommended systemd unit file. 2022-10-12 10:51:45 -04:00
seg.sgml Misc documentation fixes. 2020-10-19 19:29:56 +03:00
sepgsql.sgml doc: Fix link to SELinux user guide in sepgsql page 2021-10-28 09:26:25 +09:00
sourcerepo.sgml Change default git repo URL to https 2018-02-07 11:00:26 +01:00
sources.sgml Fix typos in comments, code and documentation 2023-01-03 16:26:38 +09:00
spgist.sgml Prevent infinite insertion loops in spgdoinsert(). 2021-05-14 15:07:34 -04:00
spi.sgml Don't crash if cursor_to_xmlschema is used on a non-data-returning Portal. 2023-09-18 14:27:47 -04:00
sslinfo.sgml Add missing comma in list of SSL versions 2020-11-02 15:20:51 +01:00
standalone-install.xml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
standalone-profile.xsl Get rid of parameterized marked sections in SGML 2017-09-27 11:26:08 -04:00
start.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
storage.sgml doc: add section about heap-only tuples (HOT) 2022-08-12 15:05:12 -04:00
stylesheet-common.xsl doc: Turn on generate.consistent.ids parameter 2017-12-05 09:00:26 -05:00
stylesheet-fo.xsl doc: Improve PDF bookmarks 2017-08-15 14:37:44 -04:00
stylesheet-hh.xsl Replace references to mailinglists with @lists.postgresql.org 2019-01-17 13:45:06 +01:00
stylesheet-html-common.xsl Replace references to mailinglists with @lists.postgresql.org 2019-01-17 13:45:06 +01:00
stylesheet-html-nochunk.xsl Remove use of Jade and DSSSL 2017-04-06 22:09:11 -04:00
stylesheet-man.xsl doc: Improve man build speed 2018-02-28 09:26:36 -05:00
stylesheet-speedup-common.xsl doc: Further speed improvements for HTML XSLT build 2016-12-22 15:41:44 -05:00
stylesheet-speedup-xhtml.xsl doc: Further speed improvements for HTML XSLT build 2016-12-22 15:41:44 -05:00
stylesheet-text.xsl Create INSTALL file via XSLT 2017-03-08 08:41:23 -05:00
stylesheet.css doc: Tweak CSS 2017-04-12 15:41:41 -04:00
stylesheet.xsl doc: Don't hide the "Up" link when it is the same as "Home" 2020-09-12 20:31:48 +02:00
syntax.sgml doc: remove mention of backslash doubling in strings 2023-09-08 17:25:14 -04:00
tablefunc.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
tablesample-method.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
tcn.sgml Change PROCEDURE to FUNCTION in CREATE TRIGGER syntax 2018-08-22 14:45:07 +02:00
test-decoding.sgml doc: Fix reference to "decoder" to instead be the correct "output plugin". 2018-07-24 10:51:06 -07:00
textsearch.sgml Replace link to Hunspell with the current homepage 2022-11-21 23:25:48 +01:00
trigger.sgml Fix docs regarding AFTER triggers on partitioned tables 2020-02-26 19:57:14 -03:00
tsm-system-rows.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
tsm-system-time.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
typeconv.sgml Doc: clarify data type behavior of COALESCE and NULLIF. 2020-11-09 12:02:24 -05:00
unaccent.sgml Make contrib/unaccent's unaccent() function work when not in search path. 2018-09-06 10:49:45 -04:00
user-manag.sgml Improve documentation of the CREATEROLE attibute. 2023-01-03 15:08:08 -05:00
uuid-ossp.sgml Reject bogus output from uuid_create(3). 2022-09-09 12:41:36 -04:00
vacuumlo.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
wal.sgml revert: add transaction processing chapter with internals info 2022-12-01 10:45:07 -05:00
xaggr.sgml Improve spelling of new FINALFUNC_MODIFY aggregate attribute. 2018-05-21 11:41:42 -04:00
xfunc.sgml Doc: improve xfunc-c-type-table. 2021-12-08 16:54:32 -05:00
xindex.sgml doc: Update uses of the word "procedure" 2018-08-22 14:45:07 +02:00
xml2.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
xoper.sgml Change PROCEDURE to FUNCTION in CREATE OPERATOR syntax 2018-08-22 14:45:07 +02:00
xplang.sgml Doc: Fix various typos 2019-08-20 13:45:58 +09:00
xtypes.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -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 number from the title of the target
	link, or xreflabel if defined at the target, or refentrytitle if target
        is a refentry;  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