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: YA attempt to stabilize the results of the postgres_fdw regressi
Date: Thu, 12 Apr 2018 19:12:23 +0000
Message-ID: <E1f6hdv-0004Mj-OU@gemulon.postgresql.org> (raw)

YA attempt to stabilize the results of the postgres_fdw regression test.

We've made multiple attempts to stabilize the plans shown by commit
1bc0100d2, with little success so far.  The reason for the remaining
instability seems to be that if a transaction (such as auto-analyze)
is running concurrently with the test, then get_actual_variable_range may
return a maximum value for "T 1"."C 1" that's far away from the actual max,
as a result of our having transiently inserted such a value earlier in
the test.  Because we use a non-MVCC snapshot to fetch the value (for
performance reasons), the presence of other transactions can cause that
function to return entries that are actually dead.

To fix, use a less extreme value in the earlier transient insertion, so
that whether it is visible or not won't affect the selectivity estimate.
The use of 9999 there seems to have been picked with the aid of a
dartboard anyway, rather than having a specific reason.

Discussion: https://postgr.es/m/16962.1523551784@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2fe977712c7375ccb1b6ddf7dfb234d0db903f16

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 18 +++++++++---------
contrib/postgres_fdw/sql/postgres_fdw.sql      | 12 ++++++------
2 files changed, 15 insertions(+), 15 deletions(-)



Message-ID: <E1f6hdv-0004Mj-OU@gemulon.postgresql.org>
Permalink:  ../E1f6hdv-0004Mj-OU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f6hdv-0004Mj-OU@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: YA attempt to stabilize the results of the postgres_fdw regressi
  In-Reply-To: <E1f6hdv-0004Mj-OU@gemulon.postgresql.org>
  References: <E1f6hdv-0004Mj-OU@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