Re: subselects vs WITH in views

From: Joe Van Dyk <joe(at)tanga(dot)com>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: subselects vs WITH in views
Date: 2013-02-19 15:22:48
Message-ID: CACfv+pJkqSOPgWhYeN3g=bWN4tbgTMrdfaSQLea09eOb4yhqLQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 19, 2013 at 1:02 AM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>wrote:

> Joe Van Dyk wrote:
> > My assumption was that WITH acted just like subselects, but apparently
> they don't? Using WITH doesn't
> > use the expected index.
>
> Currently WITH acts as an "optimization fence", that means
> that means that the planner won't move conditions into or
> out of the WITH query.

Where's the best place to read up on this?

Thanks,
Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2013-02-19 15:28:03 Re: What happens if I create new threads from within a postgresql function?
Previous Message Adrian Klaver 2013-02-19 15:02:57 Re: Questions: How to configure PostgreSQL at the beginning ....