gooderp18绿色标准版
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

39 Zeilen
1.2KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * table.h
  4. * Generic routines for table related code.
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2019, 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 "utils/relcache.h"
  18. #include "storage/lockdefs.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 void table_close(Relation relation, LOCKMODE lockmode);
  24. /*
  25. * heap_ used to be the prefix for these routines, and a lot of code will just
  26. * continue to work without adaptions after the introduction of pluggable
  27. * storage, therefore just map these names.
  28. */
  29. #define heap_open(r, l) table_open(r, l)
  30. #define heap_openrv(r, l) table_openrv(r, l)
  31. #define heap_openrv_extended(r, l, m) table_openrv_extended(r, l, m)
  32. #define heap_close(r, l) table_close(r, l)
  33. #endif /* TABLE_H */
上海开阖软件有限公司 沪ICP备12045867号-1