]> granicus.if.org Git - postgresql/commit
Update relation's stats in pg_class during vacuum full.
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 27 Dec 2017 15:26:58 +0000 (18:26 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 27 Dec 2017 15:26:58 +0000 (18:26 +0300)
commitbdbf29aaef7d1c698c1c5838a7b8cb027c406f9c
tree4eae9dacb2f4d5a116850d94c23b382de5a471da
parentc252ccda74295ad292c407a361c9d55ca0554e00
Update relation's stats in pg_class during vacuum full.

Hash index depends on estimation of numbers of tuples and pages of relations,
incorrect value could be a reason of significantly growing of index. Vacuum
full recreates heap and reindex all indexes before renewal stats. The patch
fixes that, so indexes will see correct values.

Backpatch to v10 only because earlier versions haven't usable hash index and
growing of hash index is a single user-visible symptom.

Author: Amit Kapila
Reviewed-by: Ashutosh Sharma, me
Discussion: https://www.postgresql.org/message-id/flat/20171115232922.5tomkxnw3iq6jsg7@inml.weebeastie.net
src/backend/commands/cluster.c