postgresql/doc/src/sgml
Noah Misch 5ae01df6f6 Prevent concurrent SimpleLruTruncate() for any given SLRU.
The SimpleLruTruncate() header comment states the new coding rule.  To
achieve this, add locktype "frozenid" and two LWLocks.  This closes a
rare opportunity for data loss, which manifested as "apparent
wraparound" or "could not access status of transaction" errors.  Data
loss is more likely in pg_multixact, due to released branches' thin
margin between multiStopLimit and multiWrapLimit.  If a user's physical
replication primary logged ":  apparent wraparound" messages, the user
should rebuild standbys of that primary regardless of symptoms.  At less
risk is a cluster having emitted "not accepting commands" errors or
"must be vacuumed" warnings at some point.  One can test a cluster for
this data loss by running VACUUM FREEZE in every database.  Back-patch
to 9.5 (all supported versions).

Discussion: https://postgr.es/m/20190218073103.GA1434723@rfd.leadboat.com
2020-08-15 10:15:57 -07:00
..
ref Fix postmaster's behavior during smart shutdown. 2020-08-14 13:26:57 -04:00
.gitignore Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
acronyms.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
adminpack.sgml Doc: write some for adminpack. 2016-08-10 21:39:50 -04:00
advanced.sgml doc: clarify "state" table reference in tutorial 2020-08-05 17:12:09 -04:00
arch-dev.sgml doc: Fix claim that query is passed as ASCII text 2013-05-30 21:09:27 -04: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 doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
auto-explain.sgml Rename auto_explain.sample_ratio to sample_rate 2016-03-13 13:18:03 +01:00
backup.sgml Fix documentation bug related to backup history file. 2018-06-27 00:51:07 +09:00
bgworker.sgml doc: fix plurality typo on bgwriter doc sentence 2019-11-05 20:54:04 -05:00
biblio.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
bki.sgml Allow forcing nullness of columns during bootstrap. 2015-02-21 22:31:54 +01:00
bloom.sgml doc: Spell checking 2020-02-10 09:09:56 +05:30
brin.sgml Documentation spell checking and markup improvements 2016-07-28 22:46:15 -04:00
btree-gin.sgml docs: consistently uppercase index method and add spacing 2015-05-15 11:42:34 -04:00
btree-gist.sgml doc: Fix typos 2016-07-14 22:28:58 -04:00
catalogs.sgml Prevent concurrent SimpleLruTruncate() for any given SLRU. 2020-08-15 10:15:57 -07:00
charset.sgml Doc: fix oversights in "Client/Server Character Set Conversions" table. 2018-09-01 16:02:47 -04:00
chkpass.sgml Add xreflabels to /contrib manuals so links appear correct. Also update 2011-05-07 22:29:20 -04:00
citext.sgml citext's regexp_matches() functions weren't documented, either. 2015-05-05 16:11:01 -04:00
client-auth.sgml doc: mention pg_reload_conf() for reloading the config file 2019-07-15 20:57:24 -04:00
config.sgml doc: Document that ssl_ciphers does not affect TLS 1.3 2020-07-23 20:56:40 +02:00
contacts.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04: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 Document security implications of search_path and the public schema. 2018-02-26 07:39:48 -08:00
cube.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
custom-scan.sgml Doc: Fix various typos 2019-08-20 13:46:14 +09:00
datatype.sgml Doc: fix obsolete info about allowed range of TZ offsets in timetz. 2020-08-03 13:11:16 -04:00
datetime.sgml Future-proof regression tests against possibly-missing posixrules file. 2020-06-19 13:55:21 -04:00
dblink.sgml Fix documentation for dblink_error_message() return value 2019-02-17 13:17:23 -05:00
ddl.sgml docs: land height is "elevation", not "altitude" 2020-04-22 16:23:19 -04:00
dfunc.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
dict-int.sgml Add xreflabels to /contrib manuals so links appear correct. Also update 2011-05-07 22:29:20 -04:00
dict-xsyn.sgml Add xreflabels to /contrib manuals so links appear correct. Also update 2011-05-07 22:29:20 -04:00
diskusage.sgml Get rid of pg_class.reltoastidxid. 2013-07-04 03:24:09 +09:00
dml.sgml Fix typo 2018-06-20 16:07:30 +02:00
docguide.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
earthdistance.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:43 -04:00
ecpg.sgml Doc: fix copy-and-pasteo in ecpg docs. 2020-06-16 16:41:38 -04:00
errcodes.sgml Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
event-trigger.sgml Doc: Fix event trigger firing table 2019-07-28 22:02:45 +09:00
extend.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:43 -04:00
external-projects.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
fdwhandler.sgml Clamp total-tuples estimates for foreign tables to ensure planner sanity. 2020-07-03 19:01:22 -04:00
features.sgml Update SQL features/conformance information to SQL:2011 2012-05-17 09:50:04 +03:00
file-fdw.sgml Provide a FORCE NULL option to COPY in CSV mode. 2014-03-04 17:31:59 -05:00
filelist.sgml Doc: in each release branch, keep only that branch's own release notes. 2019-02-04 19:18:50 -05:00
fixrtf Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
func.sgml Future-proof regression tests against possibly-missing posixrules file. 2020-06-19 13:55:21 -04:00
fuzzystrmatch.sgml Improve levenshtein() docs. 2016-01-22 12:29:07 -05:00
generate-errcodes-table.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
generic-wal.sgml Improve API of GenericXLogRegister(). 2016-04-12 11:42:06 -04:00
geqo.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
gin.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
gist.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
high-availability.sgml Doc: fix high availability solutions comparison. 2020-07-31 07:56:38 +09:00
history.sgml Add small doc mention that libpq is named after POSTQUEL. 2012-09-02 08:42:03 -04:00
hstore.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:43 -04:00
indexam.sgml Fix memory leak in repeated SPGIST index scans. 2018-10-31 17:04:43 -04:00
indices.sgml doc: Simplify mention of unique indexes for NULL control 2020-05-21 19:49:30 -04:00
info.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
information_schema.sgml Fix documentation of check_option in information_schema.views 2019-06-01 15:34:08 -04:00
install-windows.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
installation.sgml Doc: update or remove dead external links. 2020-07-10 13:16:00 -04:00
intagg.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
intarray.sgml doc: remove GIN vs. GiST performance mention 2016-06-28 16:00:40 -04:00
intro.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
isn.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
jadetex.cfg Improve our workaround for 'TeX capacity exceeded' in building PDF files. 2015-11-10 15:59:59 -05:00
json.sgml doc: Update RFC URLs 2019-01-05 12:48:55 +09:00
keywords.sgml Update key words table for 9.6 2016-05-11 15:01:44 -04:00
legal.sgml Update copyrights for 2020 2020-01-01 12:21:44 -05:00
libpq.sgml Doc: update or remove dead external links. 2020-07-10 13:16:00 -04:00
lo.sgml Add more limited large object trigger example. 2012-08-14 23:25:20 -04:00
lobj.sgml Fix some spelling errors in the documentation 2018-11-02 13:58:42 +01:00
logicaldecoding.sgml doc: Fix typos and other minor issues 2017-09-01 23:12:16 -04:00
ltree.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:43 -04:00
maintenance.sgml Fix documentation of "must be vacuumed within" warning. 2020-06-27 22:05:08 -07:00
Makefile Add -wnet to SP invocations 2017-11-10 08:32:00 -05:00
manage-ag.sgml doc: clarify hierarchy of objects: global, db, schema, etc. 2020-03-31 18:10:39 -04:00
mk_feature_tables.pl Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
monitoring.sgml Prevent concurrent SimpleLruTruncate() for any given SLRU. 2020-08-15 10:15:57 -07:00
mvcc.sgml Doc: Add references for SI and SSI. 2020-06-15 13:17:58 +12:00
nls.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
notation.sgml doc: Remove paragraph about typesetting conventions 2013-05-31 22:45:03 -04:00
oid2name.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
pageinspect.sgml Remove extra comma 2019-03-13 13:42:13 +01:00
parallel.sgml Proof-reading for documentation. 2018-08-17 11:53:31 +12:00
passwordcheck.sgml Remove support for native krb5 authentication 2014-01-19 17:05:01 +01:00
perform.sgml Revert "Skip WAL for new relfilenodes, under wal_level=minimal." 2020-03-22 09:24:15 -07:00
pgbuffercache.sgml doc: remove unnecessary INNER keyword 2020-04-02 17:42:09 -04:00
pgcrypto.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
pgfreespacemap.sgml doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
pgprewarm.sgml Small grammar fix 2015-08-31 14:07:17 +02:00
pgrowlocks.sgml Fix documentation of pgrowlocks using "lock_type" instead of "modes" 2018-10-02 16:36:11 +09:00
pgstandby.sgml doc: fix incorrect 'literal' tags 2016-08-23 12:45:33 -04:00
pgstatstatements.sgml Docs: explain contrib/pg_stat_statements' handling of GC failure. 2015-10-05 12:44:12 -04:00
pgstattuple.sgml Explain unaccounted for space in pgstattuple. 2016-12-27 11:28:27 -05:00
pgtrgm.sgml Remove pg_trgm.strict_word_similarity_threshold doc from 9.6 and 10 2019-09-12 16:12:04 +03:00
pgvisibility.sgml Copy-editing for contrib/pg_visibility documentation. 2016-10-01 15:32:53 -04:00
planstats.sgml Add security checks to selectivity estimation functions 2017-05-08 09:18:57 -04:00
plhandler.sgml Document security implications of check_function_bodies. 2014-02-17 09:33:31 -05:00
plperl.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
plpgsql.sgml doc: Fix incorrect reference to textout in plpgsql examples 2020-07-05 19:36:34 +09:00
plpython.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
pltcl.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
postgres-fdw.sgml postgres_fdw: Fix error message for PREPARE TRANSACTION. 2019-11-08 17:00:35 +09:00
postgres.sgml Add more parallel query documentation. 2016-09-21 08:40:34 -04:00
problems.sgml Doc: Fix various typos 2019-08-20 13:46:14 +09:00
protocol.sgml Fix typo. 2018-03-21 23:20:30 +09:00
queries.sgml Doc: clarify description of degenerate NATURAL joins. 2017-07-20 12:41:33 -04:00
query.sgml Use "backend process" rather than "backend server", where appropriate. 2011-03-12 09:38:56 -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 Update recovery_min_apply_delay docs for remote_apply mode. 2016-09-19 13:40:25 -04:00
reference.sgml Support CREATE ACCESS METHOD 2016-03-23 23:01:35 -03:00
regress.sgml Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
release-9.6.sgml Last-minute updates for release notes. 2020-08-10 15:35:46 -04:00
release.sgml Simplify release-note links to back branches. 2019-03-09 18:42:19 -05:00
replication-origins.sgml Fix ordering/categorization of some recently-added system views. 2016-05-05 12:33:29 -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: fix ancient mistake, or at least obsolete info, in rules example. 2019-11-11 14:39:55 -05:00
runtime.sgml Doc: update or remove dead external links. 2020-07-10 13:16:00 -04:00
seg.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
sepgsql.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
sourcerepo.sgml Change default git repo URL to https 2018-02-07 11:04:47 +01:00
sources.sgml Doc: Fix various typos 2019-08-20 13:46:14 +09:00
spgist.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
spi.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
sql.sgml Implement SKIP LOCKED for row-level locks 2014-10-07 17:23:34 -03:00
sslinfo.sgml Doc: Fix various typos 2019-08-20 13:46:14 +09:00
standalone-install.sgml Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
start.sgml doc: Update version() and current_date output in tutorial 2016-05-31 16:45:02 -04:00
storage.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
stylesheet-common.xsl doc: Disable preface.autolabel in XSLT 2013-12-01 17:13:23 -05:00
stylesheet-fo.xsl doc: Fix PDF build with FOP 2015-06-03 20:19:47 -04:00
stylesheet-hh.xsl Replace references to mailinglists with @lists.postgresql.org 2019-01-17 13:54:06 +01:00
stylesheet-man.xsl Fix warnings in man page build 2018-03-08 13:31:57 -05:00
stylesheet.css doc: Improve CSS style of option element 2016-02-19 23:01:54 -05:00
stylesheet.dsl doc: Move website-stylesheet setting to a more appropriate location 2014-12-11 21:48:01 -05:00
stylesheet.xsl Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
syntax.sgml Document security implications of qualified names. 2018-07-28 20:08:29 -07:00
tablefunc.sgml Improve documentation for \crosstabview. 2016-04-13 11:49:47 -04:00
tablesample-method.sgml Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
tcn.sgml Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
test-decoding.sgml doc: Fix reference to "decoder" to instead be the correct "output plugin". 2018-07-24 10:51:17 -07:00
textsearch.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:59 +09:00
trigger.sgml docs: clarify that only INSERT and UPDATE triggers can mod. NEW 2019-11-07 15:49:59 -05:00
tsearch2.sgml Add xreflabels to /contrib manuals so links appear correct. Also update 2011-05-07 22:29:20 -04:00
tsm-system-rows.sgml Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
tsm-system-time.sgml Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
typeconv.sgml Document security implications of qualified names. 2018-07-28 20:08:29 -07: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 Revert "docs: change "default role" wording to "predefined role"" 2020-02-09 14:22:08 -05:00
uuid-ossp.sgml doc: Reflect renaming of Mac OS X to OS X 2014-09-09 13:56:29 -04:00
vacuumlo.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
wal.sgml Fix the name of the first WAL segment file, in docs. 2020-03-03 12:25:48 +09:00
xaggr.sgml Improve speed of aggregates that use array_append as transition function. 2016-10-30 12:27:41 -04:00
xfunc.sgml Avoid holding a directory FD open across assorted SRF calls. 2020-03-16 21:05:56 -04:00
xindex.sgml doc: Fix typo 2016-05-01 21:37:43 -04:00
xml2.sgml Replace references to mailinglists with @lists.postgresql.org 2019-01-17 13:54:06 +01:00
xoper.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
xplang.sgml Doc: Fix various typos 2019-08-20 13:46:14 +09:00
xtypes.sgml Support "expanded" objects, particularly arrays, for better performance. 2015-05-14 12:08:49 -04: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