pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Andreas Karlsson <andreas@proxel.se>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Ignored join clause
Date: Thu, 19 Apr 2018 11:20:39 -0400
Message-ID: <21505.1524151239@sss.pgh.pa.us> (raw)
In-Reply-To: <21075.1524150692@sss.pgh.pa.us>
References: <f8128b11-c5bf-3539-48cd-234178b2314d@proxel.se>
	<87muy0dk4a.fsf@news-spur.riddles.org.uk>
	<87efjbe8rz.fsf@news-spur.riddles.org.uk>
	<21075.1524150692@sss.pgh.pa.us>

I wrote:
> I've not got to the bottom of it yet either, but I notice that if you
> replace the VALUES thingy with a plain table, the bug goes away:

Oh, scratch that --- if you "ANALYZE q1", it goes right back to the
bogus plan.  So knowing that q1 is small is part of the triggering
condition for picking the bogus plan, but VALUES per se isn't.

			regards, tom lane




view thread (7+ messages)  latest in thread

Message-ID: <21505.1524151239@sss.pgh.pa.us>
Permalink:  ../21505.1524151239@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21505.1524151239@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk, andreas@proxel.se
  Subject: Re: Ignored join clause
  In-Reply-To: <21505.1524151239@sss.pgh.pa.us>
  References: <f8128b11-c5bf-3539-48cd-234178b2314d@proxel.se> <87muy0dk4a.fsf@news-spur.riddles.org.uk> <87efjbe8rz.fsf@news-spur.riddles.org.uk> <21075.1524150692@sss.pgh.pa.us> <21505.1524151239@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