Re: BUG #8606: Materialized View WITH NO DATA bug - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #8606: Materialized View WITH NO DATA bug
Date
Msg-id 1384956300.76210.YahooMailNeo@web162903.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: BUG #8606: Materialized View WITH NO DATA bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #8606: Materialized View WITH NO DATA bug  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane <tgl@sss.pgh.pa.us> wrote:=0A=0A> But having said that, it seems t=
hat this complaint implies that=0A> CREATE MATERIALIZED VIEW ... WITH NO DA=
TA still runs the query=0A> through a planning cycle.=A0 Why is that?=A0 I =
can't immediately see=0A> any benefit to doing so.=0A=0AWell, to be honest,=
 it's because CREATE TABLE AS ... WITH NO DATA=0Adoes so, and I figured tha=
t if it was needed there I didn't see why=0ACREATE MATERIALIZED VIEW AS ...=
 WITH NO DATA would be any=0Adifferent.=A0 I'm shameless in copying what se=
ems to be working.=0A=0A--=0AKevin Grittner=0AEDB: http://www.enterprisedb.=
com=0AThe Enterprise PostgreSQL Company

pgsql-bugs by date:

Previous
From: Ronan Dunklau
Date:
Subject: Re: Server may segfault when using slices on int2vector
Next
From: Patrick Lademan
Date:
Subject: Postgres jobs will not automatically login on Mac OSX