gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * cluster.h
  4. * header file for postgres cluster command stuff
  5. *
  6. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994-5, Regents of the University of California
  8. *
  9. * src/include/commands/cluster.h
  10. *
  11. *-------------------------------------------------------------------------
  12. */
  13. #ifndef CLUSTER_H
  14. #define CLUSTER_H
  15. #include "nodes/parsenodes.h"
  16. #include "storage/lock.h"
  17. #include "utils/relcache.h"
  18. extern void cluster(ClusterStmt *stmt, bool isTopLevel);
  19. extern void cluster_rel(Oid tableOid, Oid indexOid, int options);
  20. extern void check_index_is_clusterable(Relation OldHeap, Oid indexOid,
  21. bool recheck, LOCKMODE lockmode);
  22. extern void mark_index_clustered(Relation rel, Oid indexOid, bool is_internal);
  23. extern Oid make_new_heap(Oid OIDOldHeap, Oid NewTableSpace, char relpersistence,
  24. LOCKMODE lockmode);
  25. extern void finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
  26. bool is_system_catalog,
  27. bool swap_toast_by_content,
  28. bool check_constraints,
  29. bool is_internal,
  30. TransactionId frozenXid,
  31. MultiXactId minMulti,
  32. char newrelpersistence);
  33. #endif /* CLUSTER_H */
上海开阖软件有限公司 沪ICP备12045867号-1