Re: Indexes not allowed on (read-only) views: Why?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Indexes not allowed on (read-only) views: Why?
Date: 2011-09-19 06:38:59
Message-ID: j56o0t$uue$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Craig Ringer, 17.09.2011 02:28:
> On 09/17/2011 05:47 AM, Stefan Keller wrote:
>> A (read-only) view should behave like a table, right?
>>
>>> CREATE INDEX t1_idx ON t1 (rem);
>> ERROR: »v1« not a table
>> SQL state: 42809
>>
>> => Why should'nt it be possible to create indexes on views in PG?
>
> It's not so much that it's not allowed, as that it's not implemented and not very practical for non-materialized views.

AFAIK: "indexed view" is simply Microsoft's term for "materialized view"

Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rueegg Alexander 2011-09-19 08:44:32 Dblink upgrade from 8.4 to 9.1
Previous Message Alban Hertroys 2011-09-19 06:19:18 Re: duplicate sequence, it is possible?