PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2024, 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 "storage/lockdefs.h"
19#include "utils/relcache.h"
20
21extern Relation table_open(Oid relationId, LOCKMODE lockmode);
22extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode);
23extern Relation table_openrv_extended(const RangeVar *relation,
24 LOCKMODE lockmode, bool missing_ok);
25extern Relation try_table_open(Oid relationId, LOCKMODE lockmode);
26extern void table_close(Relation relation, LOCKMODE lockmode);
27
28#endif /* TABLE_H */
int LOCKMODE
Definition: lockdefs.h:26
unsigned int Oid
Definition: postgres_ext.h:31
Relation try_table_open(Oid relationId, LOCKMODE lockmode)
Definition: table.c:60
void table_close(Relation relation, LOCKMODE lockmode)
Definition: table.c:126
Relation table_open(Oid relationId, LOCKMODE lockmode)
Definition: table.c:40
Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode)
Definition: table.c:83
Relation table_openrv_extended(const RangeVar *relation, LOCKMODE lockmode, bool missing_ok)
Definition: table.c:103