Allow ALTER VIEW command to rename the column in the view.
Fujii Masao <fujii@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_view.sgml | modified | +19 −0 |
| src/backend/commands/view.c | modified | +2 −1 |
| src/backend/parser/gram.y | modified | +22 −0 |
| src/bin/psql/tab-complete.c | modified | +13 −1 |
| src/test/regress/expected/create_view.out | modified | +26 −1 |
| src/test/regress/sql/create_view.sql | modified | +6 −0 |
Documentation touched
Discussion
- Allow CREATE OR REPLACE VIEW to rename the columns 15 messages · 2019-10-31 → 2019-11-21