Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6651045

Browse files
committed
Modify sequence catalog tuple before invoking post alter hook.
This seems to have been broken in the commit (1753b1b) thatmoved the sequence definition into pg_sequence.Author: Andres FreundDiscussion:https://postgr.es/m/20170601000716.qxg7c46ukkiljjb3@alap3.anarazel.deBackpatch: Bug is in master/v10 only
1 parent3d79013 commit6651045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/sequence.c

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp