Re: Index on View ?

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Keith Gray" <keith(at)heart(dot)com(dot)au>, "PostgreSQL" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Index on View ?
Date: 2001-04-05 08:45:59
Message-ID: 012a01c0bdac$d7864760$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

From: "Keith Gray" <keith(at)heart(dot)com(dot)au>

> Is it possible (feasible) to create an index on a view.
>
> We have a large table and a defined sub-set (view)
> from this table, would it be possible to keep an index
> of the sub-set.

I don't think so - the view is basically just a select rule that rewrites
queries based on it.

Indexes on underlying tables should be used though. Difficult to suggest
what indices you might need without knowing the view/tables/queries
involved.

- Richard Huxton

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Loïc Bourgeois 2001-04-05 12:29:43 SELECT ... FOR UPDATE
Previous Message Peter Galbavy 2001-04-05 07:29:10 Re: performance of functions - or rather lack of it