8000 New relkind ('S') for sequence relations. · postgrespro/postgres_cluster@46d11f3 · GitHub
[go: up one dir, main page]

Skip to content

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

Appearance settings

Commit 46d11f3

Browse files
committed
New relkind ('S') for sequence relations.
New funcs (nextval & currval) in pg_proc.h
1 parent 4d8e841 commit 46d11f3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/include/catalog/pg_class.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_class.h,v 1.4 1996/11/13 20:50:56 scrappy Exp $
10+
* $Id: pg_class.h,v 1.5 1997/04/02 03:29:35 vadim Exp $
1111
*
1212
* NOTES
1313
* ``pg_relation'' is being replaced by ``pg_class''. currently
@@ -160,6 +160,7 @@ DATA(insert OID = 1273 ( pg_hosts 101 PGUID 0 0 0 0 0 f t s n 3 0 - -
160160
#define RELKIND_INDEX 'i' /* secondary index */
161161
#define RELKIND_RELATION 'r' /* cataloged heap */
162162
#define RELKIND_SPECIAL 's' /* special (non-heap) */
163+
#define RELKIND_SEQUENCE 'S' /* SEQUENCE relation */
163164
#define RELKIND_UNCATALOGED 'u' /* temporary heap */
164165

165166
#endif /* PG_RELATION_H */

src/include/catalog/pg_proc.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: pg_proc.h,v 1.14 1997/03/25 08:10:50 scrappy Exp $
9+
* $Id: pg_proc.h,v 1.15 1997/04/02 03:29:37 vadim Exp $
1010
*
1111
* NOTES
1212
* The script catalog/genbki.sh reads this file and generates .bki
@@ -814,6 +814,12 @@ DATA(insert OID = 881 ( ltrim PGUID 14 f t f 1 f 25 "25" 100 0 0 1
814814
DATA(insert OID = 882 ( rtrim PGUID 14 f t f 1 f 25 "25" 100 0 0 100 "select rtrim($1, \' \')" - ));
815815
DATA(insert OID = 883 ( substr PGUID 14 f t f 2 f 25 "25 23" 100 0 0 100 "select substr($1, $2, 10000)" - ));
816816

817+
/* SEQUENCEs nextval & currval functions */
818+
DATA(insert OID = 1317 ( nextval PGUID 11 f t f 1 f 23 "25" 100 0 0 100 foo bar ));
819+
DATA(insert OID = 1319 ( currval PGUID 11 f t f 1 f 23 "25" 100 0 0 100 foo bar ));
820+
#define SeqNextValueRegProcedure 1317
821+
#define SeqCurrValueRegProcedure 1319
822+
817823
/*
818824
* prototypes for functions pg_proc.c
819825
*/

0 commit comments

Comments
 (0)
0