pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mischa <mischa.Sandberg@telus.net>
To: pgsql-performance@postgresql.org
Subject: Re: Recognizing range constraints (was Re: Plan for relatively simple query seems to be very inefficient)
Date: Thu,  7 Apr 2005 14:26:38 -0700
Message-ID: <1112909198.4255a58eae0d8@webmail.telus.net> (raw)
In-Reply-To: <16907.1112883624@sss.pgh.pa.us>
References: <425413D3.5030304@vulcanus.its.tudelft.nl>
	<28552.1112809334@sss.pgh.pa.us>
	<425423A9.9000504@vulcanus.its.tudelft.nl>
	<5999.1112820690@sss.pgh.pa.us>
	<6326.1112825377@sss.pgh.pa.us>
	<20050407143120.GA29575@wolff.to>
	<16907.1112883624@sss.pgh.pa.us>

Quoting Tom Lane <tgl@sss.pgh.pa.us>:

> Yeah, the whole thing is only a heuristic anyway.  I've been coming
> around to the view that relation membership shouldn't matter, because
> of cases like
> 
> 	WHERE a.x > b.y AND a.x < 42
> 
> which surely should be taken as a range constraint.

Out of curiosity, will the planner induce "b.y < 42" out of this?

-- 
"Dreams come true, not free."




view thread (12+ messages)  latest in thread

Message-ID: <1112909198.4255a58eae0d8@webmail.telus.net>
Permalink:  ../1112909198.4255a58eae0d8@webmail.telus.net/
Also on:    postgresql.org/message-id/1112909198.4255a58eae0d8@webmail.telus.net

 · 

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-performance@postgresql.org
  Cc: mischa.Sandberg@telus.net
  Subject: Re: Recognizing range constraints (was Re: Plan for relatively simple query seems to be very inefficient)
  In-Reply-To: <1112909198.4255a58eae0d8@webmail.telus.net>

* 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