PostgreSQL Source Code  git master
table.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * table.h
4  * Generic routines for table related code.
5  *
6  *
7  * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/access/table.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef TABLE_H
15 #define TABLE_H
16 
17 #include "nodes/primnodes.h"
18 #include "utils/relcache.h"
19 #include "storage/lockdefs.h"
20 
21 
22 extern Relation table_open(Oid relationId, LOCKMODE lockmode);
23 extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode);
24 extern Relation table_openrv_extended(const RangeVar *relation,
25  LOCKMODE lockmode, bool missing_ok);
26 extern void table_close(Relation relation, LOCKMODE lockmode);
27 
28 #endif /* TABLE_H */
Relation table_openrv_extended(const RangeVar *relation, LOCKMODE lockmode, bool missing_ok)
Definition: table.c:98
int LOCKMODE
Definition: lockdefs.h:26
unsigned int Oid
Definition: postgres_ext.h:31
void table_close(Relation relation, LOCKMODE lockmode)
Definition: table.c:133
Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode)
Definition: table.c:68
Relation table_open(Oid relationId, LOCKMODE lockmode)
Definition: table.c:39