Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYBzM-0005kY-3X for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Oct 2013 09:41:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VYBzL-0006D4-A5 for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Oct 2013 09:41:27 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYBzK-0006Cy-JM for pgsql-bugs@postgresql.org; Mon, 21 Oct 2013 09:41:26 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYBzH-0003lm-IA for pgsql-bugs@postgresql.org; Mon, 21 Oct 2013 09:41:26 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYBzG-0001Kb-Tl for pgsql-bugs@postgresql.org; Mon, 21 Oct 2013 09:41:23 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VYBzB-0004BW-K6 for pgsql-bugs@postgresql.org; Mon, 21 Oct 2013 09:41:17 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8542: Materialized View with another column_name does not work? To: pgsql-bugs@postgresql.org From: t.katsumata1122@gmail.com Message-Id: Date: Mon, 21 Oct 2013 09:41:17 +0000 X-Pg-Spam-Score: 0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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