Re: Lifting WHERE conditions out of inner select

From: "John D(dot) Burger" <john(at)mitre(dot)org>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Lifting WHERE conditions out of inner select
Date: 2007-10-09 12:05:39
Message-ID: 8BDE99A1-A6C9-4C2B-AC53-0F8C8F00DC7E@mitre.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

> The planner does not look for this type of situation though, and after
> some study I think it'd be more trouble than it was worth. It'd be
> less than trivial to determine whether the upper references occurred
> only in places where it was safe to pull them up, and the actual
> pulling
> would take some code that doesn't exist now, too,

Okay, good to know. The situation is obviously easy to avoid, I just
found the contrast surprising.

Thanks.

- John D. Burger
MITRE

In response to

Browse pgsql-general by date

  From Date Subject
Next Message longlong 2007-10-09 12:25:44 about Command Prompt.
Previous Message Peter Eisentraut 2007-10-09 11:58:36 Re: DB upgrade