postgresql/doc/src/sgml
Teodor Sigaev b8279a783d Fix behavior of ~> (cube, int) operator
~> (cube, int) operator was especially designed for knn-gist search.
However, it appears that knn-gist search can't work correctly with current
behavior of this operator when dataset contains cubes of variable
dimensionality. In this case, the same value of second operator argument
can point to different dimension depending on dimensionality of particular cube.
Such behavior is incompatible with gist indexing of cubes, and knn-gist doesn't
work correctly for it.

This patch changes behavior of ~> (cube, int) operator by introducing dimension
numbering where value of second argument unambiguously identifies number of
dimension. With new behavior, this operator can be correctly supported by
knn-gist. Relevant changes to cube operator class are also included.

Backpatch to v9.6 where operator was introduced.

Since behavior of ~> (cube, int) operator is changed, depending entities
must be refreshed after upgrade. Such as, expression indexes using this
operator must be reindexed, materialized views must be rebuilt, stored
procedures and client code must be revised to correctly use new behavior.
That should be mentioned in release notes.

Noticed by: Tomas Vondra
Author: Alexander Korotkov
Reviewed by: Tomas Vondra, Andrey Borodin
Discussion: https://www.postgresql.org/message-id/flat/a9657f6a-b497-36ff-e56-482a2c7e3292@2ndquadrant.com
2018-01-11 14:42:16 +03:00
..
ref Doc: add a summary table to the CREATE POLICY docs. 2017-11-24 12:00:37 +00:00
.gitignore git-ignore intermediate files from new docs toolchain. 2017-05-15 15:48:40 -04:00
acronyms.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
adminpack.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -04:00
advanced.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
amcheck.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -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 Allow omitting one or both boundaries in an array slice specifier. 2015-12-22 21:05:29 -05: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 Improve low-level backup documentation. 2017-08-25 15:20:26 -04:00
bgworker.sgml Don't use bgw_main even to specify in-core bgworker entrypoints. 2017-03-31 20:43:32 -04:00
biblio.sgml doc: Clean up bibliography rendering for XSLT 2017-03-26 14:54:56 -04:00
bki.sgml Allow forcing nullness of columns during bootstrap. 2015-02-21 22:31:54 +01:00
bloom.sgml docs: re-add spaces before units removed 2016-08-05 14:36:17 -04:00
brin.sgml doc: Fix typo 2017-06-13 11:28:52 -04:00
btree-gin.sgml Document btree_gin support for enums 2017-03-21 11:11:42 -04:00
btree-gist.sgml Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
catalogs.sgml Message style fixes 2017-09-11 11:20:47 -04:00
charset.sgml Fix typo 2017-10-30 14:38:09 +01:00
chkpass.sgml Add xreflabels to /contrib manuals so links appear correct. Also update 2011-05-07 22:29:20 -04:00
citext.sgml Support the new regexp_match() function for citext. 2016-08-18 10:52:31 -04:00
client-auth.sgml Grammar typo in security warning about md5 2017-11-03 10:49:14 -04:00
config.sgml doc: mention wal_receiver_status_interval as GUC affecting logical rep worker. 2017-11-23 16:48:07 +09: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 Add xreflabels to /contrib manuals so links appear correct. Also update 2011-05-07 22:29:20 -04:00
contrib.sgml Add amcheck extension to contrib. 2017-03-09 16:33:02 -08:00
cube.sgml Fix behavior of ~> (cube, int) operator 2018-01-11 14:42:16 +03:00
custom-scan.sgml Separate reinitialization of shared parallel-scan state from ExecReScan. 2017-08-30 13:18:16 -04:00
datatype.sgml doc: Mention identity column feature in section on serial 2017-08-22 19:56:16 -04:00
datetime.sgml Don't require dynamic timezone abbreviations to match underlying time zone. 2016-09-02 17:30:02 -04:00
dblink.sgml Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
ddl.sgml Doc: fix erroneous example. 2017-11-08 17:21:01 -05:00
dfunc.sgml Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:55 -04: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 doc: Remove remark elements 2017-04-05 13:18:32 -04:00
docguide.sgml doc: Update memory requirements for FOP 2017-12-05 15:41:59 -05:00
earthdistance.sgml Doc: update external URLs for PostGIS project. 2015-12-12 20:02:09 -05:00
ecpg.sgml Fix docs to not claim ECPG's SET CONNECTION is not thread-aware. 2017-06-06 12:20:31 +02:00
errcodes.sgml Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
event-trigger.sgml Mention CREATE/DROP STATISTICS in event triggers docs 2017-11-13 19:35:43 +01:00
extend.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -04:00
external-projects.sgml Add pgtcl back to the list of externally-maintained client interfaces. 2017-08-02 16:55:03 -04:00
fdwhandler.sgml Fix creation of resjunk tlist entries for inherited mixed UPDATE/DELETE. 2017-11-27 17:54:09 -05:00
features.sgml Update SQL features/conformance information to SQL:2011 2012-05-17 09:50:04 +03:00
file-fdw.sgml Change default of log_directory to 'log' 2017-03-27 10:34:33 -04:00
filelist.sgml doc: Remove unused file 2017-05-15 12:09:19 -04:00
func.sgml Apply pg_get_serial_sequence() to identity column sequences as well 2017-09-15 14:21:30 -04:00
fuzzystrmatch.sgml Improve levenshtein() docs. 2016-01-22 12:29:07 -05:00
generate-errcodes-table.pl Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
generic-wal.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -04:00
geqo.sgml doc: Improve setup for documentation building with FOP 2013-10-21 06:43:08 -04:00
gin.sgml Replace the built-in GIN array opclasses with a single polymorphic opclass. 2016-09-26 14:52:44 -04:00
gist.sgml Fix assorted inconsistencies in GiST opclass support function declarations. 2016-01-19 12:04:36 -05:00
high-availability.sgml doc: Fix table column count 2017-08-17 10:37:58 -04:00
history.sgml Add small doc mention that libpq is named after POSTQUEL. 2012-09-02 08:42:03 -04:00
hstore.sgml Add hstore_to_jsonb() and hstore_to_jsonb_loose() to hstore documentation. 2016-02-03 12:57:13 -05:00
indexam.sgml doc: Fix typos and other minor issues 2017-09-01 23:34:03 -04:00
indices.sgml hash: Add write-ahead logging support. 2017-03-14 13:27:02 -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 doc: Update information_schema documentation for identity columns 2017-06-12 16:20:12 -04:00
install-windows.sgml Support building with Visual Studio 2017 2017-09-25 08:08:19 -04:00
installation.sgml Remove dead external links from documentation 2017-09-18 10:42:02 -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 Support automatically-updatable views. 2012-12-08 18:26:21 -05:00
isn.sgml Update URL reference material in /contrib/isn docs 2014-09-03 17:22:20 -04:00
json.sgml doc: Update RFC URLs 2017-08-17 11:47:43 -04:00
keywords.sgml Update key words table for version 10 2017-06-08 17:19:50 -04:00
legal.sgml Update copyright for 2018 2018-01-02 23:30:12 -05:00
libpq.sgml doc: add example of % substitution for connection URIs 2017-09-19 12:23:18 -04:00
lo.sgml Add more limited large object trigger example. 2012-08-14 23:25:20 -04:00
lobj.sgml Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
logical-replication.sgml Document how logical replication deals with statement triggers 2017-07-03 23:37:53 -04:00
logicaldecoding.sgml doc: Fix typos and other minor issues 2017-09-01 23:34:03 -04:00
ltree.sgml docs: properly capitalize and space kB, MB, GB, TB 2016-07-30 12:27:39 -04:00
maintenance.sgml Doc: update URL for check_postgres. 2017-11-01 22:07:35 -04:00
Makefile Add -wnet to SP invocations 2017-11-10 08:31:38 -05:00
manage-ag.sgml Use gender-neutral language in documentation 2015-09-21 22:57:29 -04:00
mk_feature_tables.pl Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
monitoring.sgml Document further existing locks as wait events 2017-09-22 13:35:54 +02:00
mvcc.sgml Add GUCs for predicate lock promotion thresholds. 2017-04-07 21:38:05 -05:00
nls.sgml Use gender-neutral language in documentation 2015-09-21 22:57:29 -04: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 hash: Increase the number of possible overflow bitmaps by 8x. 2017-08-04 16:30:32 -04:00
parallel.sgml Make some more improvements to parallel query documentation. 2017-08-10 13:22:31 -04:00
passwordcheck.sgml Remove support for native krb5 authentication 2014-01-19 17:05:01 +01:00
perform.sgml doc: Fix figures in example description 2017-12-18 16:02:14 -05:00
pgbuffercache.sgml Default monitoring roles 2017-03-30 14:18:53 -04:00
pgcrypto.sgml doc: Update RFC URLs 2017-08-17 11:47:43 -04:00
pgfreespacemap.sgml Default monitoring roles 2017-03-30 14:18:53 -04:00
pgprewarm.sgml Small grammar fix 2015-08-31 14:07:17 +02:00
pgrowlocks.sgml Default monitoring roles 2017-03-30 14:18:53 -04:00
pgstandby.sgml Replace references to "xlog" with "wal" in docs. 2017-02-14 02:30:46 +09:00
pgstatstatements.sgml Fix broken markup. 2017-03-30 17:13:44 -04:00
pgstattuple.sgml hash: Increase the number of possible overflow bitmaps by 8x. 2017-08-04 16:30:32 -04:00
pgtrgm.sgml Docs: assorted minor cleanups. 2016-09-12 19:19:41 -04:00
pgvisibility.sgml Default monitoring roles 2017-03-30 14:18:53 -04:00
planstats.sgml doc: Fix typo 2017-06-17 19:03:12 -04:00
plhandler.sgml Make UNKNOWN into an actual pseudo-type. 2017-01-25 09:27:09 -05:00
plperl.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -04:00
plpgsql.sgml Fix sample INSTR() functions in the plpgsql documentation. 2018-01-10 17:13:29 -05:00
plpython.sgml PL/Python: Add cursor and execute methods to plan object 2017-03-27 11:37:22 -04:00
pltcl.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -04:00
postgres-fdw.sgml When WCOs are present, disable direct foreign table modification. 2017-07-24 15:57:24 -04:00
postgres.sgml Remove use of Jade and DSSSL 2017-04-06 22:09:11 -04:00
problems.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
protocol.sgml Provide for forward compatibility with future minor protocol versions. 2017-11-21 14:03:51 -05:00
queries.sgml Doc: clarify description of degenerate NATURAL joins. 2017-07-20 12:41:26 -04:00
query.sgml doc: Put callouts in SQL comments 2017-03-03 15:03:03 -05:00
rangetypes.sgml docs: Map operator @> to the proper SGML escape for '>' 2015-10-07 09:42:26 -04:00
README.links docs: improve xref description for xreflabel and refentry links 2014-01-30 12:26:18 -05:00
recovery-config.sgml doc: Update text for new recovery_target_lsn setting 2017-11-04 14:44:16 -04:00
reference.sgml Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
regress.sgml Doc: remove claim that PROVE_FLAGS defaults to '--verbose'. 2017-07-10 00:44:05 -04:00
release-7.4.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-8.0.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-8.1.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-8.2.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-8.3.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-8.4.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-9.0.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-9.1.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release-9.2.sgml Last-minute updates for release notes. 2017-11-06 12:02:30 -05:00
release-9.3.sgml Last-minute updates for release notes. 2017-11-06 12:02:30 -05:00
release-9.4.sgml Last-minute updates for release notes. 2017-11-06 12:02:30 -05:00
release-9.5.sgml Last-minute updates for release notes. 2017-11-06 12:02:30 -05:00
release-9.6.sgml Last-minute updates for release notes. 2017-11-06 12:02:30 -05:00
release-10.sgml Last-minute updates for release notes. 2017-11-06 12:02:30 -05:00
release-old.sgml doc: update markup for release note "release date" block 2017-05-12 18:32:04 -04:00
release.sgml Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
replication-origins.sgml Fix ordering/categorization of some recently-added system views. 2016-05-05 12:33:29 -04:00
rowtypes.sgml Doc: improve documentation about composite-value usage. 2016-11-22 17:56:42 -05:00
rules.sgml Fix creation of resjunk tlist entries for inherited mixed UPDATE/DELETE. 2017-11-27 17:54:09 -05:00
runtime.sgml Doc: improve markup in self-signed certificate example. 2017-04-18 14:21:57 -04:00
seg.sgml docs: HTML-escape '>' in '=>' using HTML entities 2015-08-05 23:03:45 -04:00
sepgsql.sgml Update some dead external links in the documentation 2017-09-18 11:09:28 -04:00
sourcerepo.sgml Doc: clarify wording about tool requirements in sourcerepo.sgml. 2017-07-10 00:08:19 -04:00
sources.sgml Fix typo in sources.sgml. 2016-10-31 07:33:00 +09:00
spgist.sgml Make another editorial pass over the 9.6 release notes. 2016-08-28 17:40:06 -04:00
spi.sgml Follow-on cleanup for the transition table patch. 2017-04-04 18:36:39 -05:00
sslinfo.sgml Don't mention SSL methods that aren't reachable in docs 2017-07-03 16:16:35 +01: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: fix backwards description of visibility map's all-frozen data. 2017-07-09 12:51:15 -04:00
stylesheet-common.xsl doc: Turn on generate.consistent.ids parameter 2017-12-05 09:01:39 -05:00
stylesheet-fo.xsl doc: Improve PDF bookmarks 2017-08-15 14:47:03 -04:00
stylesheet-hh.xsl Fix display of <command> elements on man pages 2012-04-30 21:18:03 +03:00
stylesheet-html-common.xsl doc: Convert ids to upper case at build time 2017-11-03 14:14:16 -04:00
stylesheet-html-nochunk.xsl Remove use of Jade and DSSSL 2017-04-06 22:09:11 -04:00
stylesheet-man.xsl doc: Supply XSLT template for superscript element in man pages 2016-07-17 17:01:07 -04: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 Change documentation references to PG website to use https: not http: 2017-05-20 21:50:47 -04:00
syntax.sgml docs: Improve window function docs 2017-04-11 10:47:47 -04: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 Rename WAL-related functions and views to use "lsn" not "location". 2017-05-11 11:49:59 -04:00
textsearch.sgml Remove contrib/tsearch2. 2017-02-13 11:06:11 -05:00
trigger.sgml Doc: add example of transition table use in a trigger. 2017-09-16 15:31:37 -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 Change unknown-type literals to type text in SELECT and RETURNING lists. 2017-01-25 09:17:24 -05:00
unaccent.sgml Update contrib/unaccent documentation about its unaccent.rules file. 2016-04-30 15:06:26 -04:00
user-manag.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -04:00
uuid-ossp.sgml Refer to OS X as "macOS", except for the port name which is still "darwin". 2016-09-25 15:40:57 -04:00
vacuumlo.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
wal.sgml Standardize "WAL location" terminology 2017-05-12 13:51:27 -04:00
xaggr.sgml Improve speed of aggregates that use array_append as transition function. 2016-10-30 12:27:41 -04:00
xfunc.sgml Documentation spell checking and markup improvements 2017-06-18 14:02:12 -04:00
xindex.sgml Replace the built-in GIN array opclasses with a single polymorphic opclass. 2016-09-26 14:52:44 -04:00
xml2.sgml Delete contrib/xml2's legacy implementation of xml_is_well_formed(). 2016-11-04 18:29:53 -04:00
xoper.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
xplang.sgml Remove createlang and droplang 2017-03-23 14:16:45 -04: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