Re: Under the hood of views - Mailing list pgsql-performance

From Richard Huxton
Subject Re: Under the hood of views
Date
Msg-id 4A843F11.5020805@archonet.com
Whole thread Raw
In response to Under the hood of views  (David Kerr <dmk@mr-paradox.net>)
Responses Re: Under the hood of views
List pgsql-performance
David Kerr wrote:
>
> create view test as
> select a,b,c,d,e,f,g from testtable;
>
> select a from test;
>
> (does the engine retrieve b-g?)

Shouldn't - the query just gets rewritten macro-style. I don't think it
eliminates joins if you don't need any columns, but that's not possible
without a bit of analysis.

--
   Richard Huxton
   Archonet Ltd

pgsql-performance by date:

Previous
From: David Kerr
Date:
Subject: Under the hood of views
Next
From: Rstat
Date:
Subject: Less expensive proprietary or Open source ETL tools