/* *Informationaboutpartitionsofapartitionedtable. * *Forpartitionedtableswheredetachedpartitionsexist,weonlycache *descriptorsthatincludeallpartitions,includingdetached;whenwe're *requestedadescriptorwithoutthedetachedpartitions,wecreateone *afresheachtime.(Thereasonforthisisthatthesetofdetached *partitionsthatarevisibletoeachcallerdependsonthesnapshotithas, *soit'sprettymuchimpossibletoevictadescriptorfromcacheatthe *righttime.)
*/ typedefstruct PartitionDescData
{ int nparts; /* Number of partitions */ bool detached_exist; /* Are there any detached partitions? */
Oid *oids; /* Array of 'nparts' elements containing
* partition OIDs in order of their bounds */ bool *is_leaf; /* Array of 'nparts' elements storing whether *thecorresponding'oids'elementbelongsto
* a leaf partition or not */
PartitionBoundInfo boundinfo; /* collection of partition bounds */
/* Caching fields to cache lookups in get_partition_for_tuple() */
/* *IndexintothePartitionBoundInfo'sdatumarrayforthelastfound *partitionor-1ifnone.
*/ int last_found_datum_index;
/* *Partitionindexofthelastfoundpartitionor-1ifnonehasbeen *foundyet.
*/ int last_found_part_index;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.