Re: Under the hood of views

From: David Kerr <dmk(at)mr-paradox(dot)net>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Under the hood of views
Date: 2009-08-13 23:04:00
Message-ID: 20090813230400.GA5860@mr-paradox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Aug 13, 2009 at 05:28:01PM +0100, Richard Huxton wrote:
- 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.

Perfect, thanks!

Dave

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2009-08-13 23:05:57 Re: freezing tuples ( was: Why is vacuum_freeze_min_age 100m? )
Previous Message Jeff Davis 2009-08-13 23:01:08 Re: freezing tuples ( was: Why is vacuum_freeze_min_age 100m? )