mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Make large objects their own relkind type. Fix dups in pg_class_mb
files. Fix sequence creation hack for relkind type.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user