Re: Slow running query with views...how to increase efficiency? with index? - Mailing list pgsql-general

From Alan Hodgson
Subject Re: Slow running query with views...how to increase efficiency? with index?
Date
Msg-id 200910271544.57025@hal.medialogik.com
Whole thread Raw
In response to Slow running query with views...how to increase efficiency? with index?  (fox7 <ale_shark7@yahoo.it>)
List pgsql-general
On Tuesday 27 October 2009, fox7 <ale_shark7@yahoo.it> wrote:
> I have tries this:
> CREATE INDEX View1_index
>   ON View1
>   USING btree
>   (term1);
>
> It isn't correct because this syntax is for tables, instead View1 is a
> view. Do you know the syntax to create view index?
> thanks a lot

You can't create indexes on views. They will make use of appropriate indexes
on the underlying tables, however.

--
"No animals were harmed in the recording of this episode. We tried but that
damn monkey was just too fast."

pgsql-general by date:

Previous
From: "Rhys A.D. Stewart"
Date:
Subject: Re: how to identify outliers
Next
From: Alvaro Herrera
Date:
Subject: Re: how to identify outliers