Re: a very big table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: PFC <lists(at)boutiquenumerique(dot)com>
Cc: _moray <moray1(dot)geo(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: a very big table
Date: 2005-04-04 00:50:12
Message-ID: 13636.1112575812@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

PFC <lists(at)boutiquenumerique(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael L. Hostbaek 2005-04-04 10:16:47 select & group by
Previous Message Axel Straschil 2005-04-03 20:39:23 Re: How to store directory like structures?