PostgreSQL Source Code  git master
sequence.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * sequence.h
4  * Generic routines for sequence-related code.
5  *
6  *
7  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/access/sequence.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef ACCESS_SEQUENCE_H
15 #define ACCESS_SEQUENCE_H
16 
17 #include "storage/lockdefs.h"
18 #include "utils/relcache.h"
19 
20 extern Relation sequence_open(Oid relationId, LOCKMODE lockmode);
21 extern void sequence_close(Relation relation, LOCKMODE lockmode);
22 
23 #endif /* ACCESS_SEQUENCE_H */
Relation sequence_open(Oid relationId, LOCKMODE lockmode)
Definition: sequence.c:37
void sequence_close(Relation relation, LOCKMODE lockmode)
Definition: sequence.c:58
int LOCKMODE
Definition: lockdefs.h:26
unsigned int Oid
Definition: postgres_ext.h:31