pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Insert temporary debugging output in regression tests.
Date: Tue, 21 May 2019 16:23:38 +0000
Message-ID: <E1hT7YA-0006lN-Tc@gemulon.postgresql.org> (raw)

Insert temporary debugging output in regression tests.

We're seeing occasional instability in the plans generated for
parallel queries on the "a_star" table hierarchy.  This suggests
that something is changing the planner's stats for those tables,
but that should not be happening within a regression test run.
To try to gather some information about what's happening, insert
additional queries to check the basic page/tuple counts for these
tables, as well as whether any vacuums or analyzes have happened
on them.  (We expect that only the database-wide VACUUM in
sanity_check.sql will have touched them.)

I added the probes not only in select_parallel.sql itself, but
also in stats.sql, bearing in mind that the stats collector's
lag may prevent the initial query from reporting current truth.
If any extra vacuum/analyze has happened, the recheck in stats.sql
definitely ought to see it.

This commit can be reverted once we figure out what's going on.

Per suggestion from David Rowley, though I changed the queries around.

Discussion: https://postgr.es/m/CA+hUKG+0CxrKRWRMf5ymN3gm+BECHna2B-q1w8onKBep4HasUw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f03a9ca4366d064d89b7cf7ed75d4e43f2ed0667

Modified Files
--------------
src/test/regress/expected/select_parallel.out | 27 +++++++++++++++++++++++++++
src/test/regress/expected/stats.out           | 27 +++++++++++++++++++++++++++
src/test/regress/sql/select_parallel.sql      |  8 ++++++++
src/test/regress/sql/stats.sql                |  8 ++++++++
4 files changed, 70 insertions(+)



Message-ID: <E1hT7YA-0006lN-Tc@gemulon.postgresql.org>
Permalink:  ../E1hT7YA-0006lN-Tc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hT7YA-0006lN-Tc@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Insert temporary debugging output in regression tests.
  In-Reply-To: <E1hT7YA-0006lN-Tc@gemulon.postgresql.org>
  References: <E1hT7YA-0006lN-Tc@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