PostgreSQL Source Code  git master
pg_sequence.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  *
3  * pg_sequence.h
4  * definition of the "sequence" system catalog (pg_sequence)
5  *
6  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/catalog/pg_sequence.h
10  *
11  * NOTES
12  * The Catalog.pm module reads this file and derives schema
13  * information.
14  *
15  * -------------------------------------------------------------------------
16  */
17 #ifndef PG_SEQUENCE_H
18 #define PG_SEQUENCE_H
19 
20 #include "catalog/genbki.h"
21 #include "catalog/pg_sequence_d.h"
22 
23 CATALOG(pg_sequence,2224,SequenceRelationId)
24 {
25  Oid seqrelid BKI_LOOKUP(pg_class);
26  Oid seqtypid BKI_LOOKUP(pg_type);
27  int64 seqstart;
28  int64 seqincrement;
29  int64 seqmax;
30  int64 seqmin;
31  int64 seqcache;
32  bool seqcycle;
34 
35 /* ----------------
36  * Form_pg_sequence corresponds to a pointer to a tuple with
37  * the format of pg_sequence relation.
38  * ----------------
39  */
41 
42 DECLARE_UNIQUE_INDEX_PKEY(pg_sequence_seqrelid_index, 5002, SequenceRelidIndexId, pg_sequence, btree(seqrelid oid_ops));
43 
44 MAKE_SYSCACHE(SEQRELID, pg_sequence_seqrelid_index, 32);
45 
46 #endif /* PG_SEQUENCE_H */
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
FormData_pg_sequence
Definition: pg_sequence.h:33
DECLARE_UNIQUE_INDEX_PKEY(pg_sequence_seqrelid_index, 5002, SequenceRelidIndexId, pg_sequence, btree(seqrelid oid_ops))
FormData_pg_sequence * Form_pg_sequence
Definition: pg_sequence.h:40
CATALOG(pg_sequence, 2224, SequenceRelationId)
Definition: pg_sequence.h:23
MAKE_SYSCACHE(SEQRELID, pg_sequence_seqrelid_index, 32)
unsigned int Oid
Definition: postgres_ext.h:31