summaryrefslogtreecommitdiff
path: root/src/include/catalog/pg_sequence.h
blob: a78417eaeb52a2d2e241b2516c991742df6b34c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* -------------------------------------------------------------------------
 *
 * pg_sequence.h
 *	  definition of the system "sequence" relation (pg_sequence)
 *
 * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * -------------------------------------------------------------------------
 */
#ifndef PG_SEQUENCE_H
#define PG_SEQUENCE_H

#include "catalog/genbki.h"

#define SequenceRelationId	2224

CATALOG(pg_sequence,2224) BKI_WITHOUT_OIDS
{
	Oid			seqrelid;
	Oid			seqtypid;
	int64		seqstart;
	int64		seqincrement;
	int64		seqmax;
	int64		seqmin;
	int64		seqcache;
	bool		seqcycle;
} FormData_pg_sequence;

typedef FormData_pg_sequence *Form_pg_sequence;

#define Natts_pg_sequence				8
#define Anum_pg_sequence_seqrelid		1
#define Anum_pg_sequence_seqtypid		2
#define Anum_pg_sequence_seqstart		3
#define Anum_pg_sequence_seqincrement	4
#define Anum_pg_sequence_seqmax			5
#define Anum_pg_sequence_seqmin			6
#define Anum_pg_sequence_seqcache		7
#define Anum_pg_sequence_seqcycle		8

#endif							/* PG_SEQUENCE_H */