codekingpro/portable-devtools
116k
1/*-------------------------------------------------------------------------2 *3 * table.h4 * Generic routines for table related code.5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/access/table.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef TABLE_H15#define TABLE_H16 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 */29 