Increment command counter after altering sequence type

pg_dist_object-metadatasync
Jelte Fennema 2021-07-21 17:20:37 +02:00
parent 5ae0974f38
commit f9a6d11e08
1 changed files with 5 additions and 0 deletions

View File

@ -652,6 +652,11 @@ AlterSequenceType(Oid seqOid, Oid typeOid)
SetDefElemArg(alterSequenceStatement, "as", asTypeNode); SetDefElemArg(alterSequenceStatement, "as", asTypeNode);
ParseState *pstate = make_parsestate(NULL); ParseState *pstate = make_parsestate(NULL);
AlterSequence(pstate, alterSequenceStatement); AlterSequence(pstate, alterSequenceStatement);
/*
* Make sure later reads in this transaction read the correct type.
*/
CommandCounterIncrement();
} }
} }