Content-Length: 297403 | pFad | http://github.com/postgrespro/postgres/commit/dc0400cc501ebe839c15a387911945d1585e4787

C7 Fix compiler warning and add some more comments · postgrespro/postgres@dc0400c · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/dc0400cc501ebe839c15a387911945d1585e4787

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy