Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit444455c

Browse files
committed
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
1 parent6009bad commit444455c

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

‎src/backend/executor/execPartition.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,36 @@
3232
#include"utils/ruleutils.h"
3333

3434

35+
/*-----------------------
36+
* PartitionDispatch - information about one partitioned table in a partition
37+
* hierarchy required to route a tuple to one of its partitions
38+
*
39+
*reldescRelation descriptor of the table
40+
*keyPartition key information of the table
41+
*keystateExecution state required for expressions in the partition key
42+
*partdescPartition descriptor of the table
43+
*tupslotA standalone TupleTableSlot initialized with this table's tuple
44+
*descriptor
45+
*tupmapTupleConversionMap to convert from the parent's rowtype to
46+
*this table's rowtype (when extracting the partition key of a
47+
*tuple just before routing it through this table)
48+
*indexesArray with partdesc->nparts members (for details on what
49+
*individual members represent, see how they are set in
50+
*get_partition_dispatch_recurse())
51+
*-----------------------
52+
*/
53+
typedefstructPartitionDispatchData
54+
{
55+
Relationreldesc;
56+
PartitionKeykey;
57+
List*keystate;/* list of ExprState */
58+
PartitionDescpartdesc;
59+
TupleTableSlot*tupslot;
60+
TupleConversionMap*tupmap;
61+
int*indexes;
62+
}PartitionDispatchData;
63+
64+
3565
staticPartitionDispatch*RelationGetPartitionDispatchInfo(Relationrel,
3666
int*num_parted,List**leaf_part_oids);
3767
staticvoidget_partition_dispatch_recurse(Relationrel,Relationparent,

‎src/include/executor/execPartition.h

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,7 @@
1818
#include"nodes/plannodes.h"
1919
#include"partitioning/partprune.h"
2020

21-
/*-----------------------
22-
* PartitionDispatch - information about one partitioned table in a partition
23-
* hierarchy required to route a tuple to one of its partitions
24-
*
25-
*reldescRelation descriptor of the table
26-
*keyPartition key information of the table
27-
*keystateExecution state required for expressions in the partition key
28-
*partdescPartition descriptor of the table
29-
*tupslotA standalone TupleTableSlot initialized with this table's tuple
30-
*descriptor
31-
*tupmapTupleConversionMap to convert from the parent's rowtype to
32-
*this table's rowtype (when extracting the partition key of a
33-
*tuple just before routing it through this table)
34-
*indexesArray with partdesc->nparts members (for details on what
35-
*individual members represent, see how they are set in
36-
*get_partition_dispatch_recurse())
37-
*-----------------------
38-
*/
39-
typedefstructPartitionDispatchData
40-
{
41-
Relationreldesc;
42-
PartitionKeykey;
43-
List*keystate;/* list of ExprState */
44-
PartitionDescpartdesc;
45-
TupleTableSlot*tupslot;
46-
TupleConversionMap*tupmap;
47-
int*indexes;
48-
}PartitionDispatchData;
49-
21+
/* See execPartition.c for the definition. */
5022
typedefstructPartitionDispatchData*PartitionDispatch;
5123

5224
/*-----------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp