Re: Slow running query with views...how to increase efficiency? with index?

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow running query with views...how to increase efficiency? with index?
Date: 2009-10-27 22:44:56
Message-ID: 200910271544.57025@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 27 October 2009, fox7 <ale_shark7(at)yahoo(dot)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."

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-10-27 22:56:04 Re: how to identify outliers
Previous Message Rhys A.D. Stewart 2009-10-27 22:37:10 Re: how to identify outliers