@@ -5924,6 +5924,11 @@ ATExecAddIdentity(Relation rel, const char *colName,
59245924return address ;
59255925}
59265926
5927+ /*
5928+ * ALTER TABLE ALTER COLUMN SET { GENERATED or sequence options }
5929+ *
5930+ * Return the address of the affected column.
5931+ */
59275932static ObjectAddress
59285933ATExecSetIdentity (Relation rel ,const char * colName ,Node * def ,LOCKMODE lockmode )
59295934{
@@ -5992,13 +5997,20 @@ ATExecSetIdentity(Relation rel, const char *colName, Node *def, LOCKMODE lockmod
59925997ObjectAddressSubSet (address ,RelationRelationId ,
59935998RelationGetRelid (rel ),attnum );
59945999}
6000+ else
6001+ address = InvalidObjectAddress ;
59956002
59966003heap_freetuple (tuple );
59976004heap_close (attrelation ,RowExclusiveLock );
59986005
59996006return address ;
60006007}
60016008
6009+ /*
6010+ * ALTER TABLE ALTER COLUMN DROP IDENTITY
6011+ *
6012+ * Return the address of the affected column.
6013+ */
60026014static ObjectAddress
60036015ATExecDropIdentity (Relation rel ,const char * colName ,bool missing_ok ,LOCKMODE lockmode )
60046016{