Allow ALTER VIEW command to rename the column in the view.
authorFujii Masao <fujii@postgresql.org>
Thu, 21 Nov 2019 10:55:13 +0000 (19:55 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 21 Nov 2019 10:55:13 +0000 (19:55 +0900)
commit30840c92ac0c4073fb7bc8222317630571b8cf25
tree9fda48e2777b692a4d02aac6c22074c7be81a9af
parent61a956d9cca3f72acb279c9c00f1d9cd47bbc934
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
doc/src/sgml/ref/alter_view.sgml
src/backend/commands/view.c
src/backend/parser/gram.y
src/bin/psql/tab-complete.c
src/test/regress/expected/create_view.out
src/test/regress/sql/create_view.sql