Skip site navigation (1) Skip section navigation (2)

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: (view raw or whole 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


pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group