Skip to content

Commit 6651045

Browse files
committed
Modify sequence catalog tuple before invoking post alter hook.
This seems to have been broken in the commit (1753b1b) that moved the sequence definition into pg_sequence. Author: Andres Freund Discussion: https://postgr.es/m/20170601000716.qxg7c46ukkiljjb3@alap3.anarazel.de Backpatch: Bug is in master/v10 only
1 parent 3d79013 commit 6651045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/sequence.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,12 @@ AlterSequence(ParseState *pstate, AlterSeqStmt *stmt)
490490
if (owned_by)
491491
process_owned_by(seqrel, owned_by, stmt->for_identity);
492492

493+
CatalogTupleUpdate(rel, &seqtuple->t_self, seqtuple);
494+
493495
InvokeObjectPostAlterHook(RelationRelationId, relid, 0);
494496

495497
ObjectAddressSet(address, RelationRelationId, relid);
496498

497-
CatalogTupleUpdate(rel, &seqtuple->t_self, seqtuple);
498-
499499
heap_close(rel, RowExclusiveLock);
500500
relation_close(seqrel, NoLock);
501501

0 commit comments

Comments
 (0)