Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d5d7d07

Browse files
committed
Again update C comments for pg_attribute.attislocal
1 parent 4b4b680 commit d5d7d07

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/include/catalog/pg_attribute.h

+7-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,13 @@ CATALOG(pg_attribute,1249) BKI_BOOTSTRAP BKI_WITHOUT_OIDS BKI_ROWTYPE_OID(75) BK
137137
bool attisdropped;
138138

139139
/*
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.
140+
* This flag specifies whether this column has ever had a local
141+
* definition. It is set for normal non-inherited columns, but also
142+
* for columns that are inherited from parents if also explicitly listed
143+
* in CREATE TABLE INHERITS. It is also set when inheritance is removed
144+
* from a table with ALTER TABLE NO INHERIT. If the flag is set, the
145+
* column is not dropped by a parent's DROP COLUMN even if this causes
146+
* the column's attinhcount to become zero.
143147
*/
144148
bool attislocal;
145149

0 commit comments

Comments
 (0)