pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Joe Conway <mail@joeconway.com>
Cc: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Rushabh Lathia <rushabh.lathia@gmail.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Subject: Re: postgres_fdw: perform UPDATE/DELETE .. RETURNING on a join directly
Date: Mon, 09 Apr 2018 19:15:28 +0900
Message-ID: <5ACB3D40.4040304@lab.ntt.co.jp> (raw)
In-Reply-To: <20180406191747.4dwggard7beyfkps@alap3.anarazel.de>
References: <CA+Tgmob_WGK+vKzE6FmrMmuwuv4myntfRAkEbo+tsDt9xUwCLQ@mail.gmail.com>
	<23783.1519929258@sss.pgh.pa.us>
	<5A9928F1.2010206@lab.ntt.co.jp>
	<CA+TgmoaNWpQ+F7_DtiJpc62PUJ6JQBAQpT1H7CBrjKmryGGgkw@mail.gmail.com>
	<CA+TgmoZOpGnmss2dpOAktHc30NS=StmLw-ChkJkd74DLo_nyEA@mail.gmail.com>
	<CAFjFpRdQVqCrYXN3F=jj_wftSp2gD-rPXKS-ogoQLAmrmKxwuQ@mail.gmail.com>
	<21358.1520229112@sss.pgh.pa.us>
	<25502.1520277552@sss.pgh.pa.us>
	<857d2c90-492a-028e-37b9-66d86d8!cd5dc@joeconway.com>
	<22164.1520287630@sss.pgh.pa.us>
	<20180406191747.4dwggard7beyfkps@alap3.anarazel.de>

(2018/04/07 4:17), Andres Freund wrote:
> On 2018-03-05 17:07:10 -0500, Tom Lane wrote:
>> Meanwhile, I'm back to wondering what could possibly have affected
>> the planner's estimates, if pg_proc and pg_statistic didn't change.
>> I confess bafflement ... but we've now eliminated the autovacuum-
>> did-it theory entirely, so it's time to start looking someplace else.
>> I wonder if something in the postgres_fdw remote join machinery
>> is not as deterministic as it should be.
>
> I wonder if temporarily changing postgres_fdw's test to specify an extra
> config that installs auto_explain in full aggressiveness (i.e. including
> costs etc) and enables debug3 logging could help narrow this down?

+1 because we cannot deny the possibility that the plan instability is 
caused by such an unexpected behavior of postgres_fdw.

Best regards,
Etsuro Fujita




view thread (33+ messages)

Message-ID: <5ACB3D40.4040304@lab.ntt.co.jp>
Permalink:  ../5ACB3D40.4040304@lab.ntt.co.jp/
Also on:    postgresql.org/message-id/5ACB3D40.4040304@lab.ntt.co.jp

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: fujita.etsuro@lab.ntt.co.jp, andres@anarazel.de, tgl@sss.pgh.pa.us, mail@joeconway.com, ashutosh.bapat@enterprisedb.com, robertmhaas@gmail.com, rushabh.lathia@gmail.com, michael.paquier@gmail.com
  Subject: Re: postgres_fdw: perform UPDATE/DELETE .. RETURNING on a join directly
  In-Reply-To: <5ACB3D40.4040304@lab.ntt.co.jp>

* 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