Allow CREATE OR REPLACE VIEW to rename the columns

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Allow CREATE OR REPLACE VIEW to rename the columns
Дата
Msg-id CAHGQGwHoQMD3b-MqTLcp1MgdhCpOKU7QNRwjFooT4_d+ti5v6g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Allow CREATE OR REPLACE VIEW to rename the columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

Currently CREATE OR REPLACE VIEW command fails if the column names
are changed. For example,

    =# CREATE VIEW test AS SELECT 0 AS a;
    =# CREATE OR REPLACE VIEW test AS SELECT 0 AS x;
    ERROR:  cannot change name of view column "a" to "x"

I'd like to propose the attached patch that allows CREATE OR REPLACE VIEW
to rename the view columns. Thought?

Regards,

-- 
Fujii Masao

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Problem with synchronous replication
Следующее
От: Nikita Glukhov
Дата:
Сообщение: Re: [HACKERS] [PATCH] Generic type subscripting