Re: Materialized views WIP patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Materialized views WIP patch
Date
Msg-id 23244.1361347878@sss.pgh.pa.us
Whole thread Raw
In response to Re: Materialized views WIP patch  (Kevin Grittner <kgrittn@ymail.com>)
Responses Re: Materialized views WIP patch
List pgsql-hackers
Kevin Grittner <kgrittn@ymail.com> writes:
> When I went to do this, I hit a shift/reduce conflict, because with
> TABLE being optional it couldn't tell whether:

> TRUNCATE MATERIALIZED VIEW x, y, z;

> ... was looking for five relations or three.� That goes away with
> MATERIALIZED escalated to TYPE_FUNC_NAME_KEYWORD.� Is that OK?

Not really.  I would much rather see us not bother with this pedantic
syntax than introduce an even-partially-reserved word.

Having said that, I don't think I believe your analysis of why this
doesn't work.  The presence or absence of commas ought to make the
syntax non-ambiguous, I would think.  Maybe you just factored the
grammar wrong.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: 9.2.3 crashes during archive recovery
Next
From: Heikki Linnakangas
Date:
Subject: Re: 9.2.3 crashes during archive recovery