Skip to content

Commit 7de22d2

Browse files
committed
doc: Mention index references in pg_inherits
Partitioned indexes are also registered in pg_inherits, but the description of this catalog did not reflect that. Author: Dagfinn Ilmari Mannsåker Discussion: https://postgr.es/m/87k0ynj35y.fsf@wibble.ilmari.org Backpatch-through: 11
1 parent 6ed3464 commit 7de22d2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3967,9 +3967,9 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
39673967

39683968
<para>
39693969
The catalog <structname>pg_inherits</structname> records information about
3970-
table inheritance hierarchies. There is one entry for each direct
3971-
parent-child table relationship in the database. (Indirect inheritance can be determined
3972-
by following chains of entries.)
3970+
table and index inheritance hierarchies. There is one entry for each direct
3971+
parent-child table or index relationship in the database. (Indirect
3972+
inheritance can be determined by following chains of entries.)
39733973
</para>
39743974

39753975
<table>
@@ -3991,7 +3991,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
39913991
<entry><type>oid</type></entry>
39923992
<entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry>
39933993
<entry>
3994-
The OID of the child table
3994+
The OID of the child table or index
39953995
</entry>
39963996
</row>
39973997

@@ -4000,7 +4000,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
40004000
<entry><type>oid</type></entry>
40014001
<entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry>
40024002
<entry>
4003-
The OID of the parent table
4003+
The OID of the parent table or index
40044004
</entry>
40054005
</row>
40064006

@@ -4012,6 +4012,8 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
40124012
If there is more than one direct parent for a child table (multiple
40134013
inheritance), this number tells the order in which the
40144014
inherited columns are to be arranged. The count starts at 1.
4015+
Indexes can not have multiple inheritance, since they can only inherit
4016+
when using declarative partitioning.
40154017
</entry>
40164018
</row>
40174019
</tbody>

0 commit comments

Comments
 (0)