Files
postgresql/src/test/regress/sql
Noah Misch f5bb46fb2e 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
2024-07-13 08:09:36 -07:00
..
2024-01-31 15:02:28 +09:00
2021-03-26 13:35:32 +01:00
2024-07-12 13:44:19 +02:00
2024-04-01 15:25:25 +09:00
2024-04-18 21:28:07 +02:00
2023-08-25 13:31:24 +02:00
2024-04-15 08:34:45 +02:00
2024-04-18 21:28:07 +02:00
2022-08-25 10:31:20 +02:00
2024-04-18 21:28:07 +02:00
2024-02-28 15:17:23 +04:00
2022-04-07 16:18:00 +02:00
2023-08-23 07:49:03 -07:00
2024-04-18 21:28:07 +02:00
2024-04-16 16:21:31 +12:00
2024-03-19 09:32:04 +01:00