]> granicus.if.org Git - postgresql/commitdiff
Update C comment for pg_attribute.attislocal
authorBruce Momjian <bruce@momjian.us>
Fri, 29 Aug 2014 23:01:04 +0000 (19:01 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 29 Aug 2014 23:01:04 +0000 (19:01 -0400)
Indicates if column has ever been local/non-inherited

src/include/catalog/pg_attribute.h

index cdde814307ed4681577e4f4a96844fe11fc3f556..1bd42a8410fca60cf3a66539ff62076f6e4df322 100644 (file)
@@ -136,7 +136,11 @@ CATALOG(pg_attribute,1249) BKI_BOOTSTRAP BKI_WITHOUT_OIDS BKI_ROWTYPE_OID(75) BK
        /* Is dropped (ie, logically invisible) or not */
        bool            attisdropped;
 
-       /* Has a local definition (hence, do not drop when attinhcount is 0) */
+       /*
+        * Has a local definition (hence, do not drop when attinhcount is 0)
+        * This is set and remains set if the column was _ever_
+        * local/not-inherited, e.g. this can be set by ALTER TABLE NO INHERIT.
+        */
        bool            attislocal;
 
        /* Number of times inherited from direct parent relation(s) */