- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitfbd4321
committed
Don't copy extended statistics during MERGE/SPLIT partition operations
When MERGE/SPLIT created new partitions, it was cloning the extendedstatistics of the parent table.However, extended stats on partitioned tables don't behave likeindexes on partitioned tables (which exist only to create physicalindexes on child tables). Rather, extended stats on a parent 1) causeextended stats to be collected and computed across the whole partitionhierarchy, and 2) do not cause extended stats to be computed for theindividual partitions."CREATE TABLE ... PARTITION OF" command doesn't copy extendedstatistics. This commit makes createPartitionTable() behaveconsistently.Reported-by: Justin PryzbyDiscussion:https://postgr.es/m/ZiJW1g2nbQs9ekwK%40pryzbyj2023Author: Alexander Korotkov, Justin Pryzby1 parent3a82c68 commitfbd4321
File tree
2 files changed
+12
-5
lines changed- doc/src/sgml/ref
- src/backend/commands
2 files changed
+12
-5
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1154 | 1154 |
| |
1155 | 1155 |
| |
1156 | 1156 |
| |
1157 |
| - | |
| 1157 | + | |
1158 | 1158 |
| |
1159 | 1159 |
| |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1160 | 1163 |
| |
1161 | 1164 |
| |
1162 | 1165 |
| |
| |||
1224 | 1227 |
| |
1225 | 1228 |
| |
1226 | 1229 |
| |
1227 |
| - | |
| 1230 | + | |
1228 | 1231 |
| |
1229 | 1232 |
| |
| 1233 | + | |
| 1234 | + | |
1230 | 1235 |
| |
1231 | 1236 |
| |
1232 | 1237 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20269 | 20269 |
| |
20270 | 20270 |
| |
20271 | 20271 |
| |
20272 |
| - | |
| 20272 | + | |
20273 | 20273 |
| |
20274 | 20274 |
| |
20275 | 20275 |
| |
| |||
20313 | 20313 |
| |
20314 | 20314 |
| |
20315 | 20315 |
| |
20316 |
| - | |
| 20316 | + | |
| 20317 | + | |
20317 | 20318 |
| |
20318 |
| - | |
| 20319 | + | |
| 20320 | + | |
20319 | 20321 |
| |
20320 | 20322 |
| |
20321 | 20323 |
| |
|
0 commit comments
Comments
(0)