pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow ALTER VIEW command to rename the column in the view.
Date: Thu, 21 Nov 2019 10:56:05 +0000
Message-ID: <E1iXk85-0003cc-I6@gemulon.postgresql.org> (raw)

Allow ALTER VIEW command to rename the column in the view.

ALTER TABLE RENAME COLUMN command always can be used to rename the column
in the view, but it's reasonable to add that syntax to ALTER VIEW too.

Author: Fujii Masao
Reviewed-by: Ibrar Ahmed, Yu Kimura
Discussion: https://postgr.es/m/CAHGQGwHoQMD3b-MqTLcp1MgdhCpOKU7QNRwjFooT4_d+ti5v6g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/30840c92ac0c4073fb7bc8222317630571b8cf25

Modified Files
--------------
doc/src/sgml/ref/alter_view.sgml          | 19 +++++++++++++++++++
src/backend/commands/view.c               |  3 ++-
src/backend/parser/gram.y                 | 22 ++++++++++++++++++++++
src/bin/psql/tab-complete.c               | 14 +++++++++++++-
src/test/regress/expected/create_view.out | 27 ++++++++++++++++++++++++++-
src/test/regress/sql/create_view.sql      |  6 ++++++
6 files changed, 88 insertions(+), 3 deletions(-)



Message-ID: <E1iXk85-0003cc-I6@gemulon.postgresql.org>
Permalink:  ../E1iXk85-0003cc-I6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iXk85-0003cc-I6@gemulon.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-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Allow ALTER VIEW command to rename the column in the view.
  In-Reply-To: <E1iXk85-0003cc-I6@gemulon.postgresql.org>
  References: <E1iXk85-0003cc-I6@gemulon.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