one column from huge view

From: Marcin Stępnicki <mstepnicki(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: one column from huge view
Date: 2007-07-12 08:33:45
Message-ID: f74p19$1gb$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hello.

I've googled a bit but I think I can't match the keywords, so I thought
I'll ask here:

Let's say I've got a view with 100 columns and 1mln rows; some of them are
calculated "on the fly". For some reason I want only one column from
this view:

select col1 from huge_view;

Now, does PostgreSQL skip all the calculations from other columns and
executes this query faster then select * from huge_view?

--
| And Do What You Will be the challenge | http://apcoln.linuxpl.org
| So be it in love that harms none | http://biznes.linux.pl
| For this is the only commandment. | http://www.juanperon.info
`---* JID: Aragorn_Vime(at)jabber(dot)org *---' http://www.naszedzieci.org

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Heikki Linnakangas 2007-07-12 08:50:42 Re: one column from huge view
Previous Message Adriaan van Os 2007-07-12 07:37:40 Re: TRUNCATE TABLE