diff options
author | Noah Misch | 2024-07-13 15:09:33 +0000 |
---|---|---|
committer | Noah Misch | 2024-07-13 15:09:33 +0000 |
commit | 7102070329d8147246d2791321f9915c3b5abf31 (patch) | |
tree | fa02e622bfed4ce83620abb4970eb29c4d3cf49f /src/backend/executor/nodeModifyTable.c | |
parent | 055891f374a347aedd53c5b4fc79caf0a5522e18 (diff) |
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/[email protected]
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions