Re: Index on a view??

From: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
To: Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl>
Cc: "Pgsql-General (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Index on a view??
Date: 2005-01-05 19:55:43
Message-ID: 1104954944.2886.17.camel@jeff
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

No, you can only create an index on the underlying tables. A view is a
virtual realtion, not a physical one, so what would the index point to?

Any functionality you need you should be able to get with functional
indexes.

Perhaps if/when postgresql gets materialized views an index on a view
might be useful.

Regards,
Jeff Davis

On Wed, 2005-01-05 at 20:15 +0100, Joost Kraaijeveld wrote:
> Hi all,
>
> Is it possible to create an index on a view?
>
> Groeten,
>
> Joost Kraaijeveld
> Askesis B.V.
> Molukkenstraat 14
> 6524NB Nijmegen
> tel: 024-3888063 / 06-51855277
> fax: 024-3608416
> e-mail: J(dot)Kraaijeveld(at)Askesis(dot)nl
> web: www.askesis.nl
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2005-01-05 19:56:27 Trigger Question
Previous Message Aaron Steele 2005-01-05 19:37:56 Re: warning: pg_query(): Query failed