pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: t.katsumata1122@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8542: Materialized View with another column_name does not work?
Date: Mon, 21 Oct 2013 09:41:17 +0000
Message-ID: <E1VYBzB-0004BW-K6@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      8542
Logged by:          Tomonari Katsumata
Email address:      t.katsumata1122@gmail.com
PostgreSQL version: 9.3.1
Operating system:   RHEL5 x86_64
Description:        

Hi,


I'm testing the Materialized View.
When I've tried to create materialized view with specified column_name, I
got an ERROR.


example:
- Creating original table
CREATE TABLE t ( i int );


- Creating materialized view with column_name
CREATE MATERIALIZED VIEW mv_t(ii) AS SELECT * FROM t;


And then, I got a bellow ERROR.
----
ERROR:  SELECT rule's target entry 1 has different column name from "ii"
----


I did not get any ERROR with non materialized view.
CREATE VIEW mv_t(ii) AS SELECT * FROM t;


Is this a bug or restriction for Materialized View?


regards,
-----------
Tomonari Katsumata




-- 
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 (9+ messages)  latest in thread

Message-ID: <E1VYBzB-0004BW-K6@wrigleys.postgresql.org>
Permalink:  ../E1VYBzB-0004BW-K6@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1VYBzB-0004BW-K6@wrigleys.postgresql.org

 · 

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: t.katsumata1122@gmail.com
  Subject: Re: BUG #8542: Materialized View with another column_name does not work?
  In-Reply-To: <E1VYBzB-0004BW-K6@wrigleys.postgresql.org>
  References: <E1VYBzB-0004BW-K6@wrigleys.postgresql.org>

* 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