Skip to content

Commit c6eaa88

Browse files
committed
Update C comment for pg_attribute.attislocal
Indicates if column has ever been local/non-inherited
1 parent 01363be commit c6eaa88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/include/catalog/pg_attribute.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ CATALOG(pg_attribute,1249) BKI_BOOTSTRAP BKI_WITHOUT_OIDS BKI_ROWTYPE_OID(75) BK
136136
/* Is dropped (ie, logically invisible) or not */
137137
bool attisdropped;
138138

139-
/* Has a local definition (hence, do not drop when attinhcount is 0) */
139+
/*
140+
* Has a local definition (hence, do not drop when attinhcount is 0)
141+
* This is set and remains set if the column was _ever_
142+
* local/not-inherited, e.g. this can be set by ALTER TABLE NO INHERIT.
143+
*/
140144
bool attislocal;
141145

142146
/* Number of times inherited from direct parent relation(s) */

0 commit comments

Comments
 (0)