table.h 932 B

12345678910111213141516171819202122232425262728
  1. /*-------------------------------------------------------------------------
  2. *
  3. * table.h
  4. * Generic routines for table related code.
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, 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. #include "nodes/primnodes.h"
  17. #include "storage/lockdefs.h"
  18. #include "utils/relcache.h"
  19. extern Relation table_open(Oid relationId, LOCKMODE lockmode);
  20. extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode);
  21. extern Relation table_openrv_extended(const RangeVar *relation,
  22. LOCKMODE lockmode, bool missing_ok);
  23. extern Relation try_table_open(Oid relationId, LOCKMODE lockmode);
  24. extern void table_close(Relation relation, LOCKMODE lockmode);
  25. #endif /* TABLE_H */