Re: Index on View ? - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Index on View ?
Date
Msg-id 012a01c0bdac$d7864760$1001a8c0@archonet.com
Whole thread Raw
In response to Index on View ?  (Keith Gray <keith@heart.com.au>)
List pgsql-sql
From: "Keith Gray" <keith@heart.com.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



pgsql-sql by date:

Previous
From: Peter Galbavy
Date:
Subject: Re: performance of functions - or rather lack of it
Next
From: Loïc Bourgeois
Date:
Subject: SELECT ... FOR UPDATE