pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: AP <pgsql@inml.weebeastie.net>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: 10.1: hash index size exploding on vacuum full analyze
Date: Wed, 27 Dec 2017 18:29:18 +0300
Message-ID: <4356d9d4-e702-985f-eeda-de0b7e4a6b58@sigaev.ru> (raw)
In-Reply-To: <CAA4eK1Lurd5cP6=g1=prodxRgxyuorhzbr3UHfBHsyiYo53dgw@mail.gmail.com>
References: <20171115232922.5tomkxnw3iq6jsg7@inml.weebeastie.net>
	<CAA4eK1LirO6XD2go8vDOG7scqbNCr_D=oEFtaCTGzpnHdgZEKQ@mail.gmail.com>
	<20171119233157.y5zqrn6ccvzxfw4w@inml.weebeastie.net>
	<CAA4eK1+PYgxOKr-wJiOF37BWFdPjH6O-OyNN1V+58T=gtyY6tg@mail.gmail.com>
	<CAA4eK1+6BSGrm+NtUDhx59CNR51Ehbnmch9LpswMEyrLBBjKLg@mail.gmail.com>
	<d465e05a-6022-354c-e001-181c61c6b090@sigaev.ru>
	<CAA4eK1KLTFFLPuzx2Xfkq4Qd+xz-8Pt3rigwhq5fVL0UcR1sxQ@mail.gmail.com>
	<c3649406-35f1-c018-1a79-cb519772a699@sigaev.ru>
	<CAA4eK1Lurd5cP6=g1=prodxRgxyuorhzbr3UHfBHsyiYo53dgw@mail.gmail.com>

thank you, pushed

Amit Kapila wrote:
> On Tue, Dec 26, 2017 at 9:48 PM, Teodor Sigaev <teodor@sigaev.ru> wrote:
>>> Initially, I have also thought of doing it in swap_relation_files, but
>>> we don't have stats values there.  We might be able to pass it, but
>>> not sure if there is any need for same.  As far as Toast table's case
>>> is concerned, I don't see the problem because we are copying the data
>>> row-by-row only for heap where the value of num_tuples and num_pages
>>> could be different.  See  copy_heap_data.
>>
>>
>> Ok, agree. AP (sorry, I don't see your name), could your check that patch
>> fixes your issue?
>>
>> Nevertheless, I'm going to push this patch in any case and, suppose, it
>> should be backpatched to version 10 too, although the bug is not about data
>> loss or any corruption. But patch looks rather  straightforward and has low
>> risk of some new bugs.
>>
> 
> Ideally, we can backpatch this patch to prior versions as well, but I
> think users will see this problem in v10 onwards (as hash indexes are
> primarily getting used from v10), so it seems okay to backpatch till
> 10.  In future, if we see any other symptom in prior branches, then we
> can always backpatch it.
> 
> 

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/




view thread (32+ messages)  latest in thread

Message-ID: <4356d9d4-e702-985f-eeda-de0b7e4a6b58@sigaev.ru>
Permalink:  ../4356d9d4-e702-985f-eeda-de0b7e4a6b58@sigaev.ru/
Also on:    postgresql.org/message-id/4356d9d4-e702-985f-eeda-de0b7e4a6b58@sigaev.ru

 · 

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-bugs@postgresql.org
  Cc: teodor@sigaev.ru, amit.kapila16@gmail.com, pgsql@inml.weebeastie.net
  Subject: Re: 10.1: hash index size exploding on vacuum full analyze
  In-Reply-To: <4356d9d4-e702-985f-eeda-de0b7e4a6b58@sigaev.ru>
  References: <20171115232922.5tomkxnw3iq6jsg7@inml.weebeastie.net> <CAA4eK1LirO6XD2go8vDOG7scqbNCr_D=oEFtaCTGzpnHdgZEKQ@mail.gmail.com> <20171119233157.y5zqrn6ccvzxfw4w@inml.weebeastie.net> <CAA4eK1+PYgxOKr-wJiOF37BWFdPjH6O-OyNN1V+58T=gtyY6tg@mail.gmail.com> <CAA4eK1+6BSGrm+NtUDhx59CNR51Ehbnmch9LpswMEyrLBBjKLg@mail.gmail.com> <d465e05a-6022-354c-e001-181c61c6b090@sigaev.ru> <CAA4eK1KLTFFLPuzx2Xfkq4Qd+xz-8Pt3rigwhq5fVL0UcR1sxQ@mail.gmail.com> <c3649406-35f1-c018-1a79-cb519772a699@sigaev.ru> <CAA4eK1Lurd5cP6=g1=prodxRgxyuorhzbr3UHfBHsyiYo53dgw@mail.gmail.com> <4356d9d4-e702-985f-eeda-de0b7e4a6b58@sigaev.ru>

* 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