Skip to content

Commit dc0400c

Browse files
committed
Fix compiler warning and add some more comments
1 parent 07044ef commit dc0400c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/backend/commands/tablecmds.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5924,6 +5924,11 @@ ATExecAddIdentity(Relation rel, const char *colName,
59245924
return address;
59255925
}
59265926

5927+
/*
5928+
* ALTER TABLE ALTER COLUMN SET { GENERATED or sequence options }
5929+
*
5930+
* Return the address of the affected column.
5931+
*/
59275932
static ObjectAddress
59285933
ATExecSetIdentity(Relation rel, const char *colName, Node *def, LOCKMODE lockmode)
59295934
{
@@ -5992,13 +5997,20 @@ ATExecSetIdentity(Relation rel, const char *colName, Node *def, LOCKMODE lockmod
59925997
ObjectAddressSubSet(address, RelationRelationId,
59935998
RelationGetRelid(rel), attnum);
59945999
}
6000+
else
6001+
address = InvalidObjectAddress;
59956002

59966003
heap_freetuple(tuple);
59976004
heap_close(attrelation, RowExclusiveLock);
59986005

59996006
return address;
60006007
}
60016008

6009+
/*
6010+
* ALTER TABLE ALTER COLUMN DROP IDENTITY
6011+
*
6012+
* Return the address of the affected column.
6013+
*/
60026014
static ObjectAddress
60036015
ATExecDropIdentity(Relation rel, const char *colName, bool missing_ok, LOCKMODE lockmode)
60046016
{

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