aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/enum.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-05-23 02:22:40 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-05-23 02:22:41 +0300
commitfbd4321fd5b4400fbbf356d686af6ad6d3208c66 (patch)
tree90ae1e556c44d977bebca6c8bfd0d2f12470d28e /src/backend/utils/adt/enum.c
parent3a82c689fd1be9bdf9d60135e5db7d352c051269 (diff)
downloadpostgresql-fbd4321fd5b4400fbbf356d686af6ad6d3208c66.tar.gz
postgresql-fbd4321fd5b4400fbbf356d686af6ad6d3208c66.zip
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 Pryzby
Diffstat (limited to 'src/backend/utils/adt/enum.c')
0 files changed, 0 insertions, 0 deletions