Re: CREATE MATERIALIZED VIEW .. FOR UPDATE - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: CREATE MATERIALIZED VIEW .. FOR UPDATE
Date
Msg-id 1376491888.48883.YahooMailNeo@web162905.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: CREATE MATERIALIZED VIEW .. FOR UPDATE  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-hackers
Kevin Grittner <kgrittn@ymail.com> wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
>
>> Does the combination in $SUBJECT make sense?
>
> I don't think so; I don't know what it would mean.

Oh, I see -- it's part of the SELECT statement, causing a row-level
lock on each row as it is accessed.

>> It is currently allowed,
>
> I will take a look.

Now that I'm reading it correctly, it seems within the realm of
possibility that someone might have a legitimate use for this.  I
don't see any reason to jump through any hoops to prevent anyone
from doing it.  It is worth noting that both CREATE VIEW and CREATE
TABLE AS allow the same thing.

Thanks for pointing this out, though.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: StrategyGetBuffer optimization, take 2
Next
From: Jim Nasby
Date:
Subject: Re: StrategyGetBuffer optimization, take 2