File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.12 1997/01/20 04:01:50 vadim Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.13 1997/04/02 03:41:16 vadim Exp $
1111 *
1212 * INTERFACE ROUTINES
1313 * heap_creatr() - Create an uncataloged heap relation
@@ -622,7 +622,8 @@ AddPgRelationTuple(Relation pg_class_desc,
622622 HeapTuple tup ;
623623 Relation idescs [Num_pg_class_indices ];
624624 bool isBootstrap ;
625-
625+ extern bool ItsSequenceCreation ; /* It's hack, I know...
626+ * - vadim 03/28/97 */
626627 /* ----------------
627628 * first we munge some of the information in our
628629 * uncataloged relation's relation descriptor.
@@ -634,7 +635,10 @@ AddPgRelationTuple(Relation pg_class_desc,
634635 /* new_rel_reltup->reltuples = 1; */ /* XXX */
635636
636637 new_rel_reltup -> relowner = GetUserId ();
637- new_rel_reltup -> relkind = RELKIND_RELATION ;
638+ if ( ItsSequenceCreation )
639+ new_rel_reltup -> relkind = RELKIND_SEQUENCE ;
640+ else
641+ new_rel_reltup -> relkind = RELKIND_RELATION ;
638642 new_rel_reltup -> relarch = arch ;
639643 new_rel_reltup -> relnatts = natts ;
640644
You can’t perform that action at this time.
0 commit comments