diff options
Diffstat (limited to 'src/backend/commands/sequence.c')
-rw-r--r-- | src/backend/commands/sequence.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 0c673f5763b..6ac76b1e565 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -236,8 +236,7 @@ DefineSequence(ParseState *pstate, CreateSeqStmt *seq) pgs_values[Anum_pg_sequence_seqcache - 1] = Int64GetDatumFast(seqform.seqcache); tuple = heap_form_tuple(tupDesc, pgs_values, pgs_nulls); - simple_heap_insert(rel, tuple); - CatalogUpdateIndexes(rel, tuple); + CatalogTupleInsert(rel, tuple); heap_freetuple(tuple); heap_close(rel, RowExclusiveLock); @@ -504,8 +503,7 @@ AlterSequence(ParseState *pstate, AlterSeqStmt *stmt) relation_close(seqrel, NoLock); - simple_heap_update(rel, &tuple->t_self, tuple); - CatalogUpdateIndexes(rel, tuple); + CatalogTupleUpdate(rel, &tuple->t_self, tuple); heap_close(rel, RowExclusiveLock); return address; |