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

Lines changed: 7 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy