From: Kevin Grittner <kgrittn@ymail.com>
To: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Cc: t.katsumata1122@gmail.com <t.katsumata1122@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #8542: Materialized View with another column_name does not work?
Date: Fri, 1 Nov 2013 01:20:50 -0700 (PDT)
Message-ID: <1383294050.11657.YahooMailNeo@web162904.mail.bf1.yahoo.com> (raw)
In-Reply-To: <CAFjFpRcn8EtQrMXh8-TiDP_iAs=9h+aeezKGbTvpmxXsXs-OOw@mail.gmail.com>
References: <E1VYBzB-0004BW-K6@wrigleys.postgresql.org>
<1383258177.17099.YahooMailNeo@web162903.mail.bf1.yahoo.com>
<CAFjFpRcn8EtQrMXh8-TiDP_iAs=9h+aeezKGbTvpmxXsXs-OOw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com> wrote:
> CREATE MATERIALIZED VIEW statement ends up being CREATE TABLE AS
> statement underneath with table type matview. In that case, why
> don't I see special treatment only for materialized view and not
> CTAS in general, which allows column names to specified like the
> case in the bug reported.
While the initial population of the matview is a lot like CTAS (and
so far shares some code), the critical difference is that CTAS
doesn't store a rule to support repopulating the table. This issue
comes up in the validation of that rule for the matview.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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, ashutosh.bapat@enterprisedb.com, t.katsumata1122@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #8542: Materialized View with another column_name does not work?
In-Reply-To: <1383294050.11657.YahooMailNeo@web162904.mail.bf1.yahoo.com>
References: <E1VYBzB-0004BW-K6@wrigleys.postgresql.org> <1383258177.17099.YahooMailNeo@web162903.mail.bf1.yahoo.com> <CAFjFpRcn8EtQrMXh8-TiDP_iAs=9h+aeezKGbTvpmxXsXs-OOw@mail.gmail.com> <1383294050.11657.YahooMailNeo@web162904.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