aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2024-07-13 08:09:33 -0700
committerNoah Misch <noah@leadboat.com>2024-07-13 08:09:36 -0700
commitf5bb46fb2e65f951fe22c166756dab9743b33a8a (patch)
tree53bf7d9e6dbc3e81604bd4a99b9f8a108a3d84c3 /src/backend/executor/nodeModifyTable.c
parentdd12eb33aff94dabee03d32a98d80dfa434805a6 (diff)
downloadpostgresql-f5bb46fb2e65f951fe22c166756dab9743b33a8a.tar.gz
postgresql-f5bb46fb2e65f951fe22c166756dab9743b33a8a.zip
Don't lose partitioned table reltuples=0 after relhassubclass=f.
ANALYZE sets relhassubclass=f when a partitioned table no longer has partitions. An ANALYZE doing that proceeded to apply the inplace update of pg_class.reltuples to the old pg_class tuple instead of the new tuple, losing that reltuples=0 change if the ANALYZE committed. Non-partitioning inheritance trees were unaffected. Back-patch to v14, where commit 375aed36ad83f0e021e9bdd3a0034c0c992c66dc introduced maintenance of partitioned table pg_class.reltuples. Reported by Alexander Lakhin. Discussion: https://postgr.es/m/a295b499-dcab-6a99-c06e-01cf60593344@gmail.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions