From: Wood, Dan <hexpert@amazon.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Wong, Yi Wen <yiwong@amazon.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
Date: Thu, 5 Oct 2017 17:54:46 +0000
Message-ID: <EB598F1C-B8F3-4FB2-98B5-26A68A21BEDB@amazon.com> (raw)
In-Reply-To: <CAB7nPqS6X2nQD4phz1amKbng4ppru9PGRd5bqygSHgdknLE9Wg@mail.gmail.com>
References: <1507088579842.74063@amazon.com>
<20171004134605.o7qorx4f4rvyvgok@alvherre.pgsql>
<CAB7nPqT7ZZ2Z_fVBPEVUKriCBWXTX=EEzy_dJFyVNY8O8OJPFA@mail.gmail.com>
<8ABEB00F-E19E-4178-A00A-DDA99EA73D94@amazon.com>
<CAB7nPqS6X2nQD4phz1amKbng4ppru9PGRd5bqygSHgdknLE9Wg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Yes, I’ve been testing 9.6. I’ll try Alvaro’s patch today.
I would prefer to focus on either latest 9X or 11dev. Does Alvaro’s patch presume any of the other patch to set COMMITTED in the freeze code?
On 10/4/17, 7:17 PM, "Michael Paquier" <michael.paquier@gmail.com> wrote:
On Thu, Oct 5, 2017 at 10:39 AM, Wood, Dan <hexpert@amazon.com> wrote:
> Whatever you do make sure to also test 250 clients running lock.sql. Even with the communities fix plus YiWen’s fix I can still get duplicate rows. What works for “in-block” hot chains may not work when spanning blocks.
Interesting. Which version did you test? Only 9.6?
> Once nearly all 250 clients have done their updates and everybody is waiting to vacuum which one by one will take a while I usually just “pkill -9 psql”. After that I have many of duplicate “id=3” rows. On top of that I think we might have a lock leak. After the pkill I tried to rerun setup.sql to drop/create the table and it hangs. I see an autovacuum process starting and existing every couple of seconds. Only by killing and restarting PG can I drop the table.
Yeah, that's more or less what I have been doing. My tests involve
using your initial script with way more sessions triggering lock.sql,
minus the kill-9 portion (good idea actually). I can of course see the
sessions queuing for VACUUM, still I cannot see duplicated rows, even
if I headshot Postgres in the middle of the VACUUM waiting queue. Note
that I have just tested Alvaro's patch on 9.3.
--
Michael
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: hexpert@amazon.com, michael.paquier@gmail.com, alvherre@alvh.no-ip.org, yiwong@amazon.com, pg@bowt.ie, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
In-Reply-To: <EB598F1C-B8F3-4FB2-98B5-26A68A21BEDB@amazon.com>
References: <1507088579842.74063@amazon.com> <20171004134605.o7qorx4f4rvyvgok@alvherre.pgsql> <CAB7nPqT7ZZ2Z_fVBPEVUKriCBWXTX=EEzy_dJFyVNY8O8OJPFA@mail.gmail.com> <8ABEB00F-E19E-4178-A00A-DDA99EA73D94@amazon.com> <CAB7nPqS6X2nQD4phz1amKbng4ppru9PGRd5bqygSHgdknLE9Wg@mail.gmail.com> <EB598F1C-B8F3-4FB2-98B5-26A68A21BEDB@amazon.com>
* 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