Re: Index + View Question

From: imad <immaad(at)gmail(dot)com>
To: "Dylan Lorimer" <edylan(at)google(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Index + View Question
Date: 2006-11-03 19:48:27
Message-ID: 1f30b80c0611031148q3e2af041r9b8ab1e5ac704b0e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

When you select from views, you are infact selecting from the
underlying tables. Indexes created on those tables are used
ultimately.

--Imad
www.EnterpriseDB.com

On 11/4/06, Dylan Lorimer <edylan(at)google(dot)com> wrote:
> Hi,
>
> If I've got several tables, each with their own indexes. I also have a view
> that aggregates several of these tables. My question is, as novice-like as
> it may sound, do I need to create new indexes on the view or do the indexes
> from the orig. tables apply somehow when I select data from the view?
>
> Cheers,
> Dylan
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Dylan Lorimer 2006-11-03 22:21:23 Long SQL Update Question
Previous Message Andrew Sullivan 2006-11-03 19:36:00 Re: Index + View Question