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

Commit84d5148

Browse files
committed
Fix bogus logic for skipping unnecessary partcollation dependencies.
The idea here is to not call recordDependencyOn for the default collation,since we know that's pinned. But what the code actually did was to recordthe partition key's dependency on the opclass twice, instead.Evidently introduced by sloppy coding in commit2186b60. Back-patchto v10 where that came in.
1 parent04fe805 commit84d5148

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/catalog/heap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,7 @@ StorePartitionKey(Relation rel,
34133413

34143414
/* Mark this relation as dependent on a few things as follows */
34153415
myself.classId=RelationRelationId;
3416-
myself.objectId=RelationGetRelid(rel);;
3416+
myself.objectId=RelationGetRelid(rel);
34173417
myself.objectSubId=0;
34183418

34193419
/* Operator class and collation per key column */
@@ -3432,9 +3432,9 @@ StorePartitionKey(Relation rel,
34323432
referenced.classId=CollationRelationId;
34333433
referenced.objectId=partcollation[i];
34343434
referenced.objectSubId=0;
3435-
}
34363435

3437-
recordDependencyOn(&myself,&referenced,DEPENDENCY_NORMAL);
3436+
recordDependencyOn(&myself,&referenced,DEPENDENCY_NORMAL);
3437+
}
34383438
}
34393439

34403440
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp