Re: Under the hood of views

From: Richard Huxton <dev(at)archonet(dot)com>
To: David Kerr <dmk(at)mr-paradox(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Under the hood of views
Date: 2009-08-13 16:28:01
Message-ID: 4A843F11.5020805@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alvaro Herrera 2009-08-13 20:29:44 Re: Memory usage of writer process
Previous Message David Kerr 2009-08-13 16:07:48 Under the hood of views