pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <david.rowley@2ndquadrant.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Support partition pruning at execution time
Date: Wed, 11 Apr 2018 03:50:43 +1200
Message-ID: <CAKJS1f_Y4LGYKRZtKfOPHp7zXZRMeHg0-J04HXTuntWiUG5S6Q@mail.gmail.com> (raw)
In-Reply-To: <20180410151417.zphx6l7t5j4vdgmh@alvherre.pgsql>
References: <28986.1523311382@sss.pgh.pa.us>
	<20180410151417.zphx6l7t5j4vdgmh@alvherre.pgsql>

On 11 April 2018 at 03:14, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> 2. Do we want to revert Andrew's test stabilization patch?  If I
> understand correctly, the problem is the inverse of what was diagnosed:
> "any running transaction at the time of the test could prevent pages
> from being set as all-visible".  That's correct, but the test doesn't
> depend on pages being all-visible -- quite the contrary, it depends on
> the pages NOT being all-visible (which is why the HeapFetches counts are
> all non-zero).  Since the pages contain very few tuples, autovacuum
> should never process the tables anyway.

I think it's probably a good idea to revert it once the
instrumentation is working correctly. It appears this found a bug in
that code, so is probably useful to keep just in case something else
breaks it in the future.

I don't think there is too much risk of instability from other
sources. There's no reason an auto-vacuum would trigger and cause a
change in heap fetches. We only delete one row from lprt_a, that's not
going to trigger an auto-vacuum.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services




view thread (39+ messages)  latest in thread

Message-ID: <CAKJS1f_Y4LGYKRZtKfOPHp7zXZRMeHg0-J04HXTuntWiUG5S6Q@mail.gmail.com>
Permalink:  ../CAKJS1f_Y4LGYKRZtKfOPHp7zXZRMeHg0-J04HXTuntWiUG5S6Q@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKJS1f_Y4LGYKRZtKfOPHp7zXZRMeHg0-J04HXTuntWiUG5S6Q@mail.gmail.com

 · 

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: david.rowley@2ndquadrant.com, alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Support partition pruning at execution time
  In-Reply-To: <CAKJS1f_Y4LGYKRZtKfOPHp7zXZRMeHg0-J04HXTuntWiUG5S6Q@mail.gmail.com>
  References: <28986.1523311382@sss.pgh.pa.us> <20180410151417.zphx6l7t5j4vdgmh@alvherre.pgsql> <CAKJS1f_Y4LGYKRZtKfOPHp7zXZRMeHg0-J04HXTuntWiUG5S6Q@mail.gmail.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