mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-01 06:57:21 +02:00
Move PartitionDispatchData struct definition to execPartition.c
There's no reason to expose the struct definition, so don't. Author: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> Discussion: https://postgr.es/m/d3fa24c1-bc65-7133-81df-6474387ccc4f@lab.ntt.co.jp
This commit is contained in:
parent
6009bad913
commit
444455c2d9
@ -32,6 +32,36 @@
|
|||||||
#include "utils/ruleutils.h"
|
#include "utils/ruleutils.h"
|
||||||
|
|
||||||
|
|
||||||
|
/*-----------------------
|
||||||
|
* PartitionDispatch - information about one partitioned table in a partition
|
||||||
|
* hierarchy required to route a tuple to one of its partitions
|
||||||
|
*
|
||||||
|
* reldesc Relation descriptor of the table
|
||||||
|
* key Partition key information of the table
|
||||||
|
* keystate Execution state required for expressions in the partition key
|
||||||
|
* partdesc Partition descriptor of the table
|
||||||
|
* tupslot A standalone TupleTableSlot initialized with this table's tuple
|
||||||
|
* descriptor
|
||||||
|
* tupmap TupleConversionMap to convert from the parent's rowtype to
|
||||||
|
* this table's rowtype (when extracting the partition key of a
|
||||||
|
* tuple just before routing it through this table)
|
||||||
|
* indexes Array with partdesc->nparts members (for details on what
|
||||||
|
* individual members represent, see how they are set in
|
||||||
|
* get_partition_dispatch_recurse())
|
||||||
|
*-----------------------
|
||||||
|
*/
|
||||||
|
typedef struct PartitionDispatchData
|
||||||
|
{
|
||||||
|
Relation reldesc;
|
||||||
|
PartitionKey key;
|
||||||
|
List *keystate; /* list of ExprState */
|
||||||
|
PartitionDesc partdesc;
|
||||||
|
TupleTableSlot *tupslot;
|
||||||
|
TupleConversionMap *tupmap;
|
||||||
|
int *indexes;
|
||||||
|
} PartitionDispatchData;
|
||||||
|
|
||||||
|
|
||||||
static PartitionDispatch *RelationGetPartitionDispatchInfo(Relation rel,
|
static PartitionDispatch *RelationGetPartitionDispatchInfo(Relation rel,
|
||||||
int *num_parted, List **leaf_part_oids);
|
int *num_parted, List **leaf_part_oids);
|
||||||
static void get_partition_dispatch_recurse(Relation rel, Relation parent,
|
static void get_partition_dispatch_recurse(Relation rel, Relation parent,
|
||||||
|
@ -18,35 +18,7 @@
|
|||||||
#include "nodes/plannodes.h"
|
#include "nodes/plannodes.h"
|
||||||
#include "partitioning/partprune.h"
|
#include "partitioning/partprune.h"
|
||||||
|
|
||||||
/*-----------------------
|
/* See execPartition.c for the definition. */
|
||||||
* PartitionDispatch - information about one partitioned table in a partition
|
|
||||||
* hierarchy required to route a tuple to one of its partitions
|
|
||||||
*
|
|
||||||
* reldesc Relation descriptor of the table
|
|
||||||
* key Partition key information of the table
|
|
||||||
* keystate Execution state required for expressions in the partition key
|
|
||||||
* partdesc Partition descriptor of the table
|
|
||||||
* tupslot A standalone TupleTableSlot initialized with this table's tuple
|
|
||||||
* descriptor
|
|
||||||
* tupmap TupleConversionMap to convert from the parent's rowtype to
|
|
||||||
* this table's rowtype (when extracting the partition key of a
|
|
||||||
* tuple just before routing it through this table)
|
|
||||||
* indexes Array with partdesc->nparts members (for details on what
|
|
||||||
* individual members represent, see how they are set in
|
|
||||||
* get_partition_dispatch_recurse())
|
|
||||||
*-----------------------
|
|
||||||
*/
|
|
||||||
typedef struct PartitionDispatchData
|
|
||||||
{
|
|
||||||
Relation reldesc;
|
|
||||||
PartitionKey key;
|
|
||||||
List *keystate; /* list of ExprState */
|
|
||||||
PartitionDesc partdesc;
|
|
||||||
TupleTableSlot *tupslot;
|
|
||||||
TupleConversionMap *tupmap;
|
|
||||||
int *indexes;
|
|
||||||
} PartitionDispatchData;
|
|
||||||
|
|
||||||
typedef struct PartitionDispatchData *PartitionDispatch;
|
typedef struct PartitionDispatchData *PartitionDispatch;
|
||||||
|
|
||||||
/*-----------------------
|
/*-----------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user