pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: j.rejda@konektel.cz <j.rejda@konektel.cz>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8606: Materialized View WITH NO DATA bug
Date: Wed, 20 Nov 2013 06:05:00 -0800 (PST)
Message-ID: <1384956300.76210.YahooMailNeo@web162903.mail.bf1.yahoo.com> (raw)
In-Reply-To: <31136.1384919378@sss.pgh.pa.us>
References: <E1VinLE-0005zJ-HB@wrigleys.postgresql.org>
	<1384901179.77177.YahooMailNeo@web162905.mail.bf1.yahoo.com>
	<31136.1384919378@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Tom Lane <tgl@sss.pgh.pa.us> wrote:

> But having said that, it seems that this complaint implies that
> CREATE MATERIALIZED VIEW ... WITH NO DATA still runs the query
> through a planning cycle.  Why is that?  I can't immediately see
> any benefit to doing so.

Well, to be honest, it's because CREATE TABLE AS ... WITH NO DATA
does so, and I figured that if it was needed there I didn't see why
CREATE MATERIALIZED VIEW AS ... WITH NO DATA would be any
different.  I'm shameless in copying what seems to be working.

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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <1384956300.76210.YahooMailNeo@web162903.mail.bf1.yahoo.com>
Permalink:  ../1384956300.76210.YahooMailNeo@web162903.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1384956300.76210.YahooMailNeo@web162903.mail.bf1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: kgrittn@ymail.com, tgl@sss.pgh.pa.us, j.rejda@konektel.cz
  Subject: Re: BUG #8606: Materialized View WITH NO DATA bug
  In-Reply-To: <1384956300.76210.YahooMailNeo@web162903.mail.bf1.yahoo.com>
  References: <E1VinLE-0005zJ-HB@wrigleys.postgresql.org> <1384901179.77177.YahooMailNeo@web162905.mail.bf1.yahoo.com> <31136.1384919378@sss.pgh.pa.us> <1384956300.76210.YahooMailNeo@web162903.mail.bf1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox