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

Commit46d11f3

Browse files
committed
New relkind ('S') for sequence relations.
New funcs (nextval & currval) in pg_proc.h
1 parent4d8e841 commit46d11f3

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
#defineRELKIND_INDEX'i'/* secondary index*/
161161
#defineRELKIND_RELATION'r'/* cataloged heap*/
162162
#defineRELKIND_SPECIAL's'/* special (non-heap)*/
163+
#defineRELKIND_SEQUENCE'S'/* SEQUENCE relation*/
163164
#defineRELKIND_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(insertOID=882 (rtrimPGUID14ftf1f25"25"10000100"select rtrim($1, \' \')"- ));
815815
DATA(insertOID=883 (substrPGUID14ftf2f25"25 23"10000100"select substr($1, $2, 10000)"- ));
816816

817+
/* SEQUENCEs nextval & currval functions */
818+
DATA(insertOID=1317 (nextvalPGUID11ftf1f23"25"10000100foobar ));
819+
DATA(insertOID=1319 (currvalPGUID11ftf1f23"25"10000100foobar ));
820+
#defineSeqNextValueRegProcedure 1317
821+
#defineSeqCurrValueRegProcedure 1319
822+
817823
/*
818824
* prototypes for functions pg_proc.c
819825
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp