Commit fbd4321
committed
Don't copy extended statistics during MERGE/SPLIT partition operations
When MERGE/SPLIT created new partitions, it was cloning the extended statistics of the parent table. However, extended stats on partitioned tables don't behave like indexes on partitioned tables (which exist only to create physical indexes on child tables). Rather, extended stats on a parent 1) cause extended stats to be collected and computed across the whole partition hierarchy, and 2) do not cause extended stats to be computed for the individual partitions. "CREATE TABLE ... PARTITION OF" command doesn't copy extended statistics. This commit makes createPartitionTable() behave consistently. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/ZiJW1g2nbQs9ekwK%40pryzbyj2023 Author: Alexander Korotkov, Justin Pryzby1 parent 3a82c68 commit fbd4321
File tree
2 files changed
+12
-5
lines changed- doc/src/sgml/ref
- src/backend/commands
2 files changed
+12
-5
lines changed| 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 | | |
| |||
| 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