Fix possible crash in pg_dump with identity sequences.
[pgsql.git] / src / include / access / table.h
blob1c0bee79fd8b290c00bfd494ef4c11f85cb08ac5
1 /*-------------------------------------------------------------------------
3 * table.h
4 * Generic routines for table related code.
7 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/access/table.h
12 *-------------------------------------------------------------------------
14 #ifndef TABLE_H
15 #define TABLE_H
17 #include "nodes/primnodes.h"
18 #include "storage/lockdefs.h"
19 #include "utils/relcache.h"
21 extern Relation table_open(Oid relationId, LOCKMODE lockmode);
22 extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode);
23 extern Relation table_openrv_extended(const RangeVar *relation,
24 LOCKMODE lockmode, bool missing_ok);
25 extern Relation try_table_open(Oid relationId, LOCKMODE lockmode);
26 extern void table_close(Relation relation, LOCKMODE lockmode);
28 #endif /* TABLE_H */