pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: PFC <lists@boutiquenumerique.com>
Cc: _moray <moray1.geo@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: a very big table
Date: Sun, 03 Apr 2005 20:50:12 -0400
Message-ID: <13636.1112575812@sss.pgh.pa.us> (raw)
In-Reply-To: <op.son5avzcth1vuj@localhost>
References: <lkf2e.2987$aH3.649@news.edisontel.com>
	<op.son5avzcth1vuj@localhost>

PFC <lists@boutiquenumerique.com> writes:
> 	Here you don't need to LEFT JOIN, you can use a straight simple  
> unconstrained join because the rows generated by the LEFT JOINs which have  
> NULL in the right columns will be rejected by the WHERE clause anyway :

In recent versions of Postgres, the planner knows this and can make the
simplification for itself, at least if the operator or function used in
WHERE is properly marked as strict.

			regards, tom lane



view thread (4+ messages)

Message-ID: <13636.1112575812@sss.pgh.pa.us>
Permalink:  ../13636.1112575812@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13636.1112575812@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lists@boutiquenumerique.com, moray1.geo@yahoo.com
  Subject: Re: a very big table
  In-Reply-To: <13636.1112575812@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