Re: The command tag of "ALTER MATERIALIZED VIEW RENAME COLUMN"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: The command tag of "ALTER MATERIALIZED VIEW RENAME COLUMN"
Date: 2019-10-31 13:56:17
Message-ID: 16186.1572530177@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fujii Masao <masao(dot)fujii(at)gmail(dot)com> writes:
> ... I found that the command tag of
> ALTER MATERIALIZED VIEW RENAME COLUMN is "ALTER TABLE", not "ALTER VIEW".

> =# ALTER MATERIALIZED VIEW hoge RENAME COLUMN j TO x;
> ALTER TABLE

> Is this intentional? Or bug?

Seems like an oversight.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrzej Barszcz 2019-10-31 14:06:13 function calls optimization
Previous Message Tom Lane 2019-10-31 13:54:24 Re: Allow CREATE OR REPLACE VIEW to rename the columns