pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Update relation's stats in pg_class during vacuum full. 2+ messages / 1 participants [nested] [flat]
* pgsql: Update relation's stats in pg_class during vacuum full. @ 2017-12-27 15:26 Teodor Sigaev <teodor@sigaev.ru> 0 siblings, 0 replies; 2+ messages in thread From: Teodor Sigaev @ 2017-12-27 15:26 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ad337c76b6f454157982309089c3302fe77c9cbc Modified Files -------------- src/backend/commands/cluster.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Update relation's stats in pg_class during vacuum full. @ 2017-12-27 15:27 Teodor Sigaev <teodor@sigaev.ru> 0 siblings, 0 replies; 2+ messages in thread From: Teodor Sigaev @ 2017-12-27 15:27 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bdbf29aaef7d1c698c1c5838a7b8cb027c406f9c Modified Files -------------- src/backend/commands/cluster.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-12-27 15:27 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-12-27 15:26 pgsql: Update relation's stats in pg_class during vacuum full. Teodor Sigaev <teodor@sigaev.ru> 2017-12-27 15:27 pgsql: Update relation's stats in pg_class during vacuum full. Teodor Sigaev <teodor@sigaev.ru>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox