Re: Views- Advantages and Disadvantages - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: Views- Advantages and Disadvantages
Date
Msg-id 7531B14F-2025-4938-AD59-6334CC744CD3@seespotcode.net
Whole thread Raw
In response to Re: Views- Advantages and Disadvantages  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Views- Advantages and Disadvantages
List pgsql-general
On May 9, 2007, at 19:58 , Joshua D. Drake wrote:

> Brent Wood wrote:
>> Ashish Karalkar wrote:
>>> Thanks Brent for your replay,
>>>
>>>
>>> What about the Disadvantages, Performance issues?
>> As far as I'm aware, performance is the only real disadvantage.
>
> What performance are we talking about here? Executing from a view
> although has *some* overhead, I don't even know that it is worth
> considering in most cases.

Two people now have stated without much qualification that views have
some kind of associated performance (Brent Woods) or optimization
(Dann Corbit) penalty. Where does this idea come from? Views in
PostgreSQL are just rewritten with the view query inlined! There's
not much overhead there AIUI.

Michael Glaesemann
grzm seespotcode net



pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Views- Advantages and Disadvantages
Next
From: "Dann Corbit"
Date:
Subject: Re: Views- Advantages and Disadvantages