8000 Prototypes for sequence.c · postgrespro/postgres_cluster@4d8e841 · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 4d8e841

Browse files
committed
Prototypes for sequence.c
1 parent 80b6185 commit 4d8e841

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/include/commands/sequence.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* sequence.h--
4+
* prototypes for sequence.c.
5+
*
6+
*
7+
*-------------------------------------------------------------------------
8+
*/
9+
#ifndef SEQUENCE_H
10+
#define SEQUENCE_H
11+
12+
/*
13+
* Columns of a sequnece relation
14+
*/
15+
16+
#define SEQ_COL_NAME 1
17+
#define SEQ_COL_LASTVAL 2
18+
#define SEQ_COL_INCBY 3
19+
#define SEQ_COL_MAXVALUE 4
20+
#define SEQ_COL_MINVALUE 5
21+
#define SEQ_COL_CACHE 6
22+
#define SEQ_COL_CYCLE 7
23+
#define SEQ_COL_CALLED 8
24+
25+
#define SEQ_COL_FIRSTCOL SEQ_COL_NAME
26+
#define SEQ_COL_LASTCOL SEQ_COL_CALLED
27+
28+
extern void DefineSequence (CreateSeqStmt *stmt);
29+
extern int4 nextval (struct varlena *seqname);
30+
extern int4 currval (struct varlena *seqname);
31+
extern void CloseSequences (void);
32+
33+
#endif /* SEQUENCE_H */

0 commit comments

Comments
 (0)
0