Skip to content

Commit 2030cbd

Browse files
committed
Hack for heap_creat to enable relkind to be 'S' for sequences.
1 parent 076f728 commit 2030cbd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/backend/catalog/heap.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy