pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: Svenne Krap <svenne@krap.dk>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Perfomance of views
Date: Thu, 27 Oct 2005 16:40:39 +0100
Message-ID: <4360F4F7.8070503@archonet.com> (raw)
In-Reply-To: <4360D906.3060504@Yahoo.com>
References: <435FA002.4060509@krap.dk>
<43609EF4.8060907@archonet.com>
<4360AE59.6010209@krap.dk>
<4360BA22.5050606@archonet.com>
<4360D906.3060504@Yahoo.com>
Jan Wieck wrote:
> On 10/27/2005 7:29 AM, Richard Huxton wrote:
>> Svenne Krap wrote:
>>
>>> What do you mean exactly but "pushing conditions inside" ?
>>
>> If I have something like "SELECT * FROM complicated_view WHERE foo =
>> 7" then the planner can look "inside" complicated_view and see where
>> it can attach the condition "foo=7", rather than running the query and
>> applying the condition at the end.
>
> Sorry, but the planner doesn't attach the condition anywhere. It is the
> rewriter that takes the actual query, replaces the views rangetable and
> expression entries with the actual underlying objects and adds the views
> condition with an AND to the queries condition. Simply example:
Thanks for the correction Jan.
--
Richard Huxton
Archonet Ltd
view thread (8+ messages)
Message-ID: <4360F4F7.8070503@archonet.com> Permalink: ../4360F4F7.8070503@archonet.com/ Also on: postgresql.org/message-id/4360F4F7.8070503@archonet.com ·
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: dev@archonet.com, JanWieck@Yahoo.com, svenne@krap.dk Subject: Re: Perfomance of views In-Reply-To: <4360F4F7.8070503@archonet.com> * 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