pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Parallel Append subplan order instability on aye-aye
Date: Wed, 17 Jul 2019 19:20:04 -0400
Message-ID: <28166.1563405604@sss.pgh.pa.us> (raw)
In-Reply-To: <20190717231232.ssx6fxay756exn6a@alap3.anarazel.de>
References: <CA+hUKGL1jZaZuUAtBhx0Bh6-qcOi5YwT9dZh8eZWmNmPauJvjA@mail.gmail.com>
	<CAKJS1f-KovGF5-j8xMdMufrF-i=dJqmS=nh0Y3=pBtvLnAN6hw@mail.gmail.com>
	<3341.1558449552@sss.pgh.pa.us>
	<CA+hUKGJLgTy36PLGcMJWFqaYwyHWugtmYjaZD179z_FcxHp9cQ@mail.gmail.com>
	<1588.1558500275@sss.pgh.pa.us>
	<1554.1563236463@sss.pgh.pa.us>
	<4174.1563239552@sss.pgh.pa.us>
	<20190716192344.5jrt5pgzczi545zr@alap3.anarazel.de>
	<CAKJS1f-t4QUS3z9QeNbg2+2ExwNZtXZLxie5AxNw9s8spo=M-g@mail.gmail.com>
	<22315.1563378828@sss.pgh.pa.us>
	<20190717231232.ssx6fxay756exn6a@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2019-07-17 11:53:48 -0400, Tom Lane wrote:
>> A brute-force way to fix this (or at least reduce the odds quite a bit)
>> would be to have sanity_check.sql issue a CHECKPOINT before its VACUUM,
>> thereby guaranteeing that none of these pages are still in need of being
>> written.  Not sure how much that'd penalize the regression tests' runtime,
>> or whether we'd have a loss of test coverage of VACUUM behaviors.

> Alternatively we could VACUUM FREEZE the relevant tables? That then
> ought to hit the blocking codepath in lazu_scan_heap()?

If we want to target just the X_star tables, I'd be inclined to do
an ANALYZE instead.  (Although that would create inheritance-tree
statistics, which might change some plan choices?  Haven't tried.)

			regards, tom lane





view thread (21+ messages)  latest in thread

Message-ID: <28166.1563405604@sss.pgh.pa.us>
Permalink:  ../28166.1563405604@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28166.1563405604@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, david.rowley@2ndquadrant.com, thomas.munro@gmail.com
  Subject: Re: Parallel Append subplan order instability on aye-aye
  In-Reply-To: <28166.1563405604@sss.pgh.pa.us>
  References: <CA+hUKGL1jZaZuUAtBhx0Bh6-qcOi5YwT9dZh8eZWmNmPauJvjA@mail.gmail.com> <CAKJS1f-KovGF5-j8xMdMufrF-i=dJqmS=nh0Y3=pBtvLnAN6hw@mail.gmail.com> <3341.1558449552@sss.pgh.pa.us> <CA+hUKGJLgTy36PLGcMJWFqaYwyHWugtmYjaZD179z_FcxHp9cQ@mail.gmail.com> <1588.1558500275@sss.pgh.pa.us> <1554.1563236463@sss.pgh.pa.us> <4174.1563239552@sss.pgh.pa.us> <20190716192344.5jrt5pgzczi545zr@alap3.anarazel.de> <CAKJS1f-t4QUS3z9QeNbg2+2ExwNZtXZLxie5AxNw9s8spo=M-g@mail.gmail.com> <22315.1563378828@sss.pgh.pa.us> <20190717231232.ssx6fxay756exn6a@alap3.anarazel.de> <28166.1563405604@sss.pgh.pa.us>

* 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