]> granicus.if.org Git - postgresql/commitdiff
Clarify descriptions of relhassubclass and relispartition in pg_class
authorMichael Paquier <michael@paquier.xyz>
Mon, 22 Oct 2018 06:26:28 +0000 (15:26 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 22 Oct 2018 06:26:28 +0000 (15:26 +0900)
Three places are fixed, one for each author.

Reported-by: Tom Lane
Author: Tom Lane, Amit Langote, Michael Paquier
Discussion: https://postgr.es/m/82470.1540177167@sss.pgh.pa.us

doc/src/sgml/catalogs.sgml
src/include/catalog/pg_class.h

index 6d6fbecd125d02ac14236b68f4a596e4d81cabdd..9edba96fabb0dd5dd6f0e339ededd70b3b94141b 100644 (file)
@@ -1900,7 +1900,9 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
       <entry><structfield>relhassubclass</structfield></entry>
       <entry><type>bool</type></entry>
       <entry></entry>
-      <entry>True if table has (or once had) any inheritance children</entry>
+      <entry>
+       True if table or index has (or once had) any inheritance children
+      </entry>
      </row>
 
      <row>
@@ -1948,7 +1950,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
       <entry><structfield>relispartition</structfield></entry>
       <entry><type>bool</type></entry>
       <entry></entry>
-      <entry>True if table is a partition</entry>
+      <entry>True if table or index is a partition</entry>
      </row>
 
      <row>
index dc6c415c5865399f5a247f8d9e9c490cb76a8ff2..788d7a31dc07e0aa924600605fec78c64c88692c 100644 (file)
@@ -60,7 +60,7 @@ CATALOG(pg_class,1259,RelationRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(83,Relat
        bool            relhasoids;             /* T if we generate OIDs for rows of rel */
        bool            relhasrules;    /* has (or has had) any rules */
        bool            relhastriggers; /* has (or has had) any TRIGGERs */
-       bool            relhassubclass; /* has (or has had) derived classes */
+       bool            relhassubclass; /* has (or has had) child tables or indexes */
        bool            relrowsecurity; /* row security is enabled or not */
        bool            relforcerowsecurity;    /* row security forced for owners or
                                                                                 * not */