pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Update relation's stats in pg_class during vacuum full.
Date: Wed, 27 Dec 2017 15:26:18 +0000
Message-ID: <E1eUDb0-0005Dc-J0@gemulon.postgresql.org> (raw)

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(+)



view thread (2+ messages)  latest in thread

Message-ID: <E1eUDb0-0005Dc-J0@gemulon.postgresql.org>
Permalink:  ../E1eUDb0-0005Dc-J0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eUDb0-0005Dc-J0@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru
  Subject: Re: pgsql: Update relation's stats in pg_class during vacuum full.
  In-Reply-To: <E1eUDb0-0005Dc-J0@gemulon.postgresql.org>
  References: <E1eUDb0-0005Dc-J0@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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