toasting.h 943 B

123456789101112131415161718192021222324252627282930
  1. /*-------------------------------------------------------------------------
  2. *
  3. * toasting.h
  4. * This file provides some definitions to support creation of toast tables
  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/catalog/toasting.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef TOASTING_H
  15. #define TOASTING_H
  16. #include "storage/lock.h"
  17. /*
  18. * toasting.c prototypes
  19. */
  20. extern void NewRelationCreateToastTable(Oid relOid, Datum reloptions);
  21. extern void NewHeapCreateToastTable(Oid relOid, Datum reloptions,
  22. LOCKMODE lockmode, Oid OIDOldToast);
  23. extern void AlterTableCreateToastTable(Oid relOid, Datum reloptions,
  24. LOCKMODE lockmode);
  25. extern void BootstrapToastTable(char *relName,
  26. Oid toastOid, Oid toastIndexOid);
  27. #endif /* TOASTING_H */