| От | Tom Lane |
|---|---|
| Тема | Re: patch: Add columns via CREATE OR REPLACE VIEW |
| Дата | |
| Msg-id | 27919.1218144403@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: patch: Add columns via CREATE OR REPLACE VIEW ("Robert Haas" <robertmhaas@gmail.com>) |
| Ответы |
Re: patch: Add columns via CREATE OR REPLACE VIEW
|
| Список | pgsql-hackers |
"Robert Haas" <robertmhaas@gmail.com> writes:
> Although several people have said that they prefer the idea of using
> ALTER VIEW to make changes to views, no one has really expanded on the
> reasons for their preference.
Because it sidesteps the problem of tracking which column is supposed to
be which. If you try to do it through CREATE OR REPLACE VIEW, you have
to either be extremely restrictive (like probably not allow renaming
of columns at all), or write some AI-complete algorithm to guess at what
the user intended.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера