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

Commitc203dcd

Browse files
committed
Remove unused function parameter in get_qual_from_partbound
Commit0563a3a changed how partition constraints were generated suchthat this function no longer computes the mapping of parent attnos tochild attnos.This is an external function that extensions could use, so this ispotentially a breaking change. No external callers are known, however,and this will make it simpler to write such callers in the future.Author: Hou ZhijieReviewed-by: David Rowley, Michael Paquier, Soumyadeep ChakrabortyDiscussion:https://www.postgresql.org/message-id/flat/OS0PR01MB5716A75A45BE46101A1B489894379@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parenteec5711 commitc203dcd

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17350,7 +17350,7 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd,
1735017350
* If the parent itself is a partition, make sure to include its
1735117351
* constraint as well.
1735217352
*/
17353-
partBoundConstraint = get_qual_from_partbound(attachrel,rel, cmd->bound);
17353+
partBoundConstraint = get_qual_from_partbound(rel, cmd->bound);
1735417354
partConstraint = list_concat(partBoundConstraint,
1735517355
RelationGetPartitionQual(rel));
1735617356

‎src/backend/partitioning/partbounds.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ static List *get_range_nulltest(PartitionKey key);
246246
*expressions as partition constraint
247247
*/
248248
List*
249-
get_qual_from_partbound(Relationrel,Relationparent,
250-
PartitionBoundSpec*spec)
249+
get_qual_from_partbound(Relationparent,PartitionBoundSpec*spec)
251250
{
252251
PartitionKeykey=RelationGetPartitionKey(parent);
253252
List*my_qual=NIL;

‎src/backend/utils/cache/partcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ generate_partition_qual(Relation rel)
376376
bound=castNode(PartitionBoundSpec,
377377
stringToNode(TextDatumGetCString(boundDatum)));
378378

379-
my_qual=get_qual_from_partbound(rel,parent,bound);
379+
my_qual=get_qual_from_partbound(parent,bound);
380380
}
381381

382382
ReleaseSysCache(tuple);

‎src/include/partitioning/partbounds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ extern intget_hash_partition_greatest_modulus(PartitionBoundInfo b);
8585
externuint64compute_partition_hash_value(intpartnatts,FmgrInfo*partsupfunc,
8686
Oid*partcollation,
8787
Datum*values,bool*isnull);
88-
externList*get_qual_from_partbound(Relationrel,Relationparent,
88+
externList*get_qual_from_partbound(Relationparent,
8989
PartitionBoundSpec*spec);
9090
externPartitionBoundInfopartition_bounds_create(PartitionBoundSpec**boundspecs,
9191
intnparts,PartitionKeykey,int**mapping);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp