postgresql/doc/src/sgml
Alvaro Herrera 7ffead21a4
Accept relations of any kind in LOCK TABLE
The restriction that only tables and views can be locked by LOCK TABLE
is quite arbitrary, since the underlying mechanism can lock any relation
type.  Drop the restriction so that programs such as pg_dump can lock
all relations they're interested in, preventing schema changes that
could cause a dump to fail after expending much effort.

Backpatch to 9.5.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reported-by: Wells Oliver <wells.oliver@gmail.com>
Discussion: https://postgr.es/m/20201021200659.GA32358@alvherre.pgsql
2020-10-27 13:49:19 -03:00
..
images Add XSL stylesheet to fix up SVG files 2019-06-19 21:26:42 +02:00
keywords Update SQL keywords list to SQL:2016 2019-05-14 15:44:37 +02:00
ref Accept relations of any kind in LOCK TABLE 2020-10-27 13:49:19 -03:00
.gitignore doc: Generate keywords table automatically 2019-05-07 15:29:39 +02:00
acronyms.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:45 +09:00
adminpack.sgml Support new default roles with adminpack 2018-04-06 14:47:10 -04:00
advanced.sgml docs: improve 'capitals' inheritance example 2020-08-31 13:43:04 -04:00
amcheck.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
arch-dev.sgml doc: Clean up title case use 2019-09-08 10:27:16 +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 Fix more typos and inconsistencies in documentation 2019-04-28 22:53:33 +09:00
backup.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
bgworker.sgml doc: fix for plurality typo on bgwriter doc sentence 2019-11-05 21:29:02 -05:00
biblio.sgml Fix title in reference section 2020-09-10 14:16:34 +02:00
bki.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
bloom.sgml doc: make blooms docs match reality 2020-10-26 19:17:05 -04:00
brin.sgml Remove deprecated abstime, reltime, tinterval datatypes. 2018-10-11 11:59:15 -07: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: Spell checking 2019-07-05 08:33:51 +02:00
catalogs.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
charset.sgml doc: Remove buggy ICU collation from documentation 2020-09-10 15:36:15 +02:00
citext.sgml Collations with nondeterministic comparison 2019-03-22 12:12:43 +01:00
client-auth.sgml docs: clarify the interaction of clientcert and cert auth. 2020-10-05 16:07:15 -04:00
config.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
contrib-spi.sgml Remove timetravel extension. 2018-10-11 11:43:56 -07:00
contrib.sgml Document security implications of search_path and the public schema. 2018-02-26 07:39:44 -08:00
cube.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:45 +09:00
custom-scan.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
datatype.sgml Doc: caution against misuse of 'now' and related datetime literals. 2020-10-17 16:02:47 -04:00
datetime.sgml Future-proof regression tests against possibly-missing posixrules file. 2020-06-19 13:55:21 -04:00
dblink.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
ddl.sgml Doc: Improve clarity on partitioned table limitations 2020-09-30 13:04:13 +13:00
dfunc.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:45 +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 Fix many typos and inconsistencies 2019-07-01 10:00:23 +09:00
dml.sgml doc: Fix up title case 2020-08-25 07:31:12 +02:00
docguide.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
earthdistance.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
ecpg.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
errcodes.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
event-trigger.sgml Doc: Fix event trigger firing table 2019-07-28 22:02:30 +09:00
extend.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
external-projects.sgml Update link for pllua 2020-10-19 13:48:17 +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 doc: Clean up title case use 2020-06-07 13:19:25 +02:00
file-fdw.sgml doc: cross-link file-fdw and CSV config log sections 2020-08-31 16:59:58 -04:00
filelist.sgml doc: Generate keywords table automatically 2019-05-07 15:29:39 +02:00
func.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
fuzzystrmatch.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
generate-errcodes-table.pl Update copyright for 2019 2019-01-02 12:44:25 -05:00
generate-keywords-table.pl Update SQL keywords list to SQL:2016 2019-05-14 15:44:37 +02: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:45 +09:00
gin.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
gist.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
high-availability.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
history.sgml doc: Update redirecting links 2018-07-16 10:48:05 +02:00
hstore.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
indexam.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
indices.sgml doc: Simplify mention of unique indexes for NULL control 2020-05-21 19:49:30 -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:47 -04:00
install-windows.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
installation.sgml Doc: update or remove dead external links. 2020-07-10 13:16:00 -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:45 +09:00
isn.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
jit.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
json.sgml doc: Update a confusing sentence about SQL/JSON 2019-09-26 16:35:10 +02:00
keywords.sgml doc: Generate keywords table automatically 2019-05-07 15:29:39 +02:00
legal.sgml Update copyrights for 2020 2020-01-01 12:21:45 -05:00
libpq.sgml docs: remove reference to src/tools/thread 2020-10-27 12:43:11 -04:00
limits.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
lo.sgml Change PROCEDURE to FUNCTION in CREATE TRIGGER syntax 2018-08-22 14:44:49 +02:00
lobj.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
logical-replication.sgml Document clashes between logical replication and untrusted users. 2020-08-10 09:22:58 -07:00
logicaldecoding.sgml doc: Fix some grammar and inconsistencies 2020-09-10 15:50:46 +09:00
ltree.sgml Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
maintenance.sgml Fix documentation of "must be vacuumed within" warning. 2020-06-27 22:05:07 -07:00
Makefile doc: Fix image use in PDF build with vpath 2019-08-19 10:32:14 +02: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 commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
mvcc.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
nls.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:45 +09:00
notation.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
oid2name.sgml Rework option set of oid2name 2018-08-28 21:33:32 +09:00
pageinspect.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
parallel.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
passwordcheck.sgml doc: Update redirecting links 2018-07-16 10:48:05 +02:00
perform.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
pgbuffercache.sgml Fix inconsistency in pg_buffercache docs. 2020-05-08 08:47:51 +05:30
pgcrypto.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:45 +09:00
pgfreespacemap.sgml Revert "Avoid the creation of the free space map for small heap relations". 2019-05-07 09:30:24 +05:30
pgprewarm.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
pgrowlocks.sgml Fix documentation of pgrowlocks using "lock_type" instead of "modes" 2018-10-02 16:34:41 +09:00
pgstandby.sgml Integrate recovery.conf into postgresql.conf 2018-11-25 16:33:40 +01:00
pgstatstatements.sgml Extend pg_stat_statements_reset to reset statistics specific to a 2019-01-11 08:50:09 +05:30
pgstattuple.sgml Revert "Avoid the creation of the free space map for small heap relations". 2019-05-07 09:30:24 +05:30
pgtrgm.sgml Add docs of missing GUC to pgtrgm.sgml 2019-06-10 19:42:36 +03:00
pgvisibility.sgml Don't use SGML empty tags 2017-10-17 15:10:33 -04:00
planstats.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
plhandler.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
plperl.sgml doc: Refresh more URLs in the docs 2020-07-18 22:43:45 +09:00
plpgsql.sgml doc: simplify wording of function error affects 2020-10-26 22:38:11 -04: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:45 +09:00
postgres-fdw.sgml postgres_fdw: Fix error message for PREPARE TRANSACTION. 2019-11-08 17:00:31 +09:00
postgres.sgml tableam: basic documentation. 2019-04-03 17:40:29 -07:00
problems.sgml Doc: Fix various typos 2019-08-20 13:45:53 +09:00
protocol.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
queries.sgml doc: show functions returning record types and use of ROWS FROM 2020-10-05 16:27:33 -04:00
query.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
rangetypes.sgml docs: clarify infinite range values from data-type infinities 2019-12-27 14:33:30 -05:00
README.links doc: Refine README.links further 2019-03-29 13:36:24 +01:00
reference.sgml Rename pg_verify_checksums to pg_checksums 2019-03-13 10:43:20 +09:00
regress.sgml Add an enforcement mechanism for global object names in regression tests. 2019-06-29 11:34:00 -04:00
release-12.sgml Last-minute updates for release notes. 2020-08-10 15:35:46 -04:00
release.sgml Doc: remove obsolete comment about per-branch documentation. 2019-05-03 12:32:06 -04: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 Misc documentation fixes. 2020-10-19 19:29:54 +03:00
runtime.sgml doc: clarify the use of ssh port forwarding 2020-10-02 21:39:33 -04:00
seg.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03:00
sepgsql.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
sourcerepo.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
sources.sgml doc: Fix some grammar and inconsistencies 2020-09-10 15:50:46 +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
sslinfo.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
standalone-install.xml Doc: tweak installation doc edits made by commit 76c2af926. 2019-09-06 12:10:29 -04: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: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -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 doc: Add some images 2019-03-27 23:10:23 +01:00
stylesheet-html-common.xsl Better scaling of images in HTML output 2019-04-16 14:27:56 +02:00
stylesheet-html-nochunk.xsl doc: Add some images 2019-03-27 23:10:23 +01: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 Better scaling of images in HTML output 2019-04-16 14:27:56 +02:00
stylesheet.xsl doc: Don't hide the "Up" link when it is the same as "Home" 2020-09-12 20:30:49 +02:00
syntax.sgml doc: improve description of subscripting of arrays 2020-08-31 13:49:17 -04:00
tableam.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
tablefunc.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
tablesample-method.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
tcn.sgml Change PROCEDURE to FUNCTION in CREATE TRIGGER syntax 2018-08-22 14:44:49 +02:00
test-decoding.sgml doc: Fix reference to "decoder" to instead be the correct "output plugin". 2018-07-24 10:42:59 -07:00
textsearch.sgml Misc documentation fixes. 2020-10-19 19:29:54 +03: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: fix description of UNION/CASE/etc type unification. 2020-08-17 15:40:07 -04: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:20:26 -05:00
uuid-ossp.sgml Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
vacuumlo.sgml doc: remove xreflabels from commits 75fcdd2ae2 and 85af628da5 2020-06-11 18:19:25 -04:00
wal.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
xaggr.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
xfunc.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
xindex.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
xml2.sgml doc: add commas after 'i.e.' and 'e.g.' 2020-08-31 18:33:37 -04:00
xoper.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00
xplang.sgml Doc: Fix various typos 2019-08-20 13:45:53 +09:00
xtypes.sgml doc: Clean up title case use 2019-09-08 10:27:16 +02:00

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

Linking within DocBook 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
----------

- For an internal link, if you want to supply text, use <link>, else
  <xref>.

- Specific nouns like GUC variables, SQL commands, and contrib modules
  usually have xreflabels.

- For an external link, use <ulink>, with or without link text.