1 /*-------------------------------------------------------------------------
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 *-------------------------------------------------------------------------
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
);