diff options
Diffstat (limited to 'src/backend/commands/sequence.c')
-rw-r--r-- | src/backend/commands/sequence.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 572cc3b3f60..2c81196ff7c 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -24,8 +24,6 @@ #define SEQ_MAXVALUE ((int4)0x7FFFFFFF) #define SEQ_MINVALUE -(SEQ_MAXVALUE) -bool ItsSequenceCreation = false; - typedef struct FormData_pg_sequence { NameData sequence_name; @@ -157,15 +155,7 @@ DefineSequence(CreateSeqStmt *seq) stmt->inhRelnames = NIL; stmt->constraints = NIL; - ItsSequenceCreation = true; /* hack */ - - DefineRelation(stmt); - - /* - * Xact abort calls CloseSequences, which turns ItsSequenceCreation - * off - */ - ItsSequenceCreation = false;/* hack */ + DefineRelation(stmt, RELKIND_SEQUENCE); rel = heap_openr(seq->seqname); Assert(RelationIsValid(rel)); @@ -438,8 +428,6 @@ CloseSequences(void) SeqTable elm; Relation rel; - ItsSequenceCreation = false; - for (elm = seqtab; elm != (SeqTable) NULL;) { if (elm->rel != (Relation) NULL) /* opened in current xact */ |