Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit970ff81

Browse files
committed
Add a note about the interpretation of amcanmulticol and amindexnulls:
a multicolumn-capable index AM *must* support nulls in index columnsafter the first one.
1 parent9ca89b4 commit970ff81

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

‎doc/src/sgml/xindex.sgml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/xindex.sgml,v 1.24 2002/04/17 20:57:56 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/xindex.sgml,v 1.25 2002/05/29 17:36:40 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -105,6 +105,22 @@ PostgreSQL documentation
105105
</table>
106106
</para>
107107

108+
<note>
109+
<para>
110+
An index AM that supports multiple columns (has
111+
<structfield>amcanmulticol</structfield> true) <emphasis>must</>
112+
support indexing nulls in columns after the first, because the planner
113+
will assume the index can be used for queries on just the first
114+
column(s). For example, consider an index on (a,b) and a query
115+
WHERE a = 4. The system will assume the index can be used to scan for
116+
rows with a = 4, which is wrong if the index omits rows where b is null.
117+
However it is okay to omit rows where the first indexed column is null.
118+
(GiST currently does so.)
119+
<structfield>amindexnulls</structfield> should be set true only if the
120+
index AM indexes all rows, including arbitrary combinations of nulls.
121+
</para>
122+
</note>
123+
108124
<para>
109125
The <acronym>OID</acronym> of the row in
110126
<filename>pg_am</filename> is used as a foreign key in a lot of other

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp