gooderp18绿色标准版
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

44 líneas
1.3KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * partdesc.h
  4. *
  5. * Copyright (c) 1996-2019, PostgreSQL Global Development Group
  6. *
  7. * src/include/utils/partdesc.h
  8. *
  9. *-------------------------------------------------------------------------
  10. */
  11. #ifndef PARTDESC_H
  12. #define PARTDESC_H
  13. #include "partitioning/partdefs.h"
  14. #include "utils/relcache.h"
  15. /*
  16. * Information about partitions of a partitioned table.
  17. */
  18. typedef struct PartitionDescData
  19. {
  20. int nparts; /* Number of partitions */
  21. Oid *oids; /* Array of 'nparts' elements containing
  22. * partition OIDs in order of the their bounds */
  23. bool *is_leaf; /* Array of 'nparts' elements storing whether
  24. * the corresponding 'oids' element belongs to
  25. * a leaf partition or not */
  26. PartitionBoundInfo boundinfo; /* collection of partition bounds */
  27. } PartitionDescData;
  28. extern void RelationBuildPartitionDesc(Relation rel);
  29. extern PartitionDirectory CreatePartitionDirectory(MemoryContext mcxt);
  30. extern PartitionDesc PartitionDirectoryLookup(PartitionDirectory, Relation);
  31. extern void DestroyPartitionDirectory(PartitionDirectory pdir);
  32. extern Oid get_default_oid_from_partdesc(PartitionDesc partdesc);
  33. extern bool equalPartitionDescs(PartitionKey key, PartitionDesc partdesc1,
  34. PartitionDesc partdesc2);
  35. #endif /* PARTCACHE_H */
上海开阖软件有限公司 沪ICP备12045867号-1