Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2030cbd

Browse files
committed
Hack for heap_creat to enable relkind to be 'S' for sequences.
1 parent076f728 commit2030cbd

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
HeapTupletup;
623623
Relationidescs[Num_pg_class_indices];
624624
boolisBootstrap;
625-
625+
externboolItsSequenceCreation;/* 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)

[8]ページ先頭

©2009-2025 Movatter.jp