relation.h 977 B

12345678910111213141516171819202122232425262728
  1. /*-------------------------------------------------------------------------
  2. *
  3. * relation.h
  4. * Generic relation related routines.
  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/relation.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef ACCESS_RELATION_H
  15. #define ACCESS_RELATION_H
  16. #include "nodes/primnodes.h"
  17. #include "storage/lockdefs.h"
  18. #include "utils/relcache.h"
  19. extern Relation relation_open(Oid relationId, LOCKMODE lockmode);
  20. extern Relation try_relation_open(Oid relationId, LOCKMODE lockmode);
  21. extern Relation relation_openrv(const RangeVar *relation, LOCKMODE lockmode);
  22. extern Relation relation_openrv_extended(const RangeVar *relation,
  23. LOCKMODE lockmode, bool missing_ok);
  24. extern void relation_close(Relation relation, LOCKMODE lockmode);
  25. #endif /* ACCESS_RELATION_H */