Re: patch: Add columns via CREATE OR REPLACE VIEW
| От | Tom Lane |
|---|---|
| Тема | Re: patch: Add columns via CREATE OR REPLACE VIEW |
| Дата | |
| Msg-id | 8466.1218202961@sss.pgh.pa.us обсуждение |
| Ответ на | Re: patch: Add columns via CREATE OR REPLACE VIEW (Zeugswetter Andreas OSB sIT <Andreas.Zeugswetter@s-itsolutions.at>) |
| Ответы |
Re: patch: Add columns via CREATE OR REPLACE VIEW
|
| Список | pgsql-hackers |
Zeugswetter Andreas OSB sIT <Andreas.Zeugswetter@s-itsolutions.at> writes:
>> If you accept the idea that column identity should be based on column
>> name, then the only two operations that are really necessary are
>> "CREATE OR REPLACE VIEW" and "ALTER VIEW RENAME COLUMN", and it is
>> 100% clear what the semantics of those operations should be.
> +1
It's nice, it's simple, and it's unimplementable. At least not without
huge changes in the representation of stored views, which would likely
lead to failure to follow spec-required behavior in other ways. Other
views are going to refer to the columns of this one by *number*, not
name, and it's not clear to me how you're going to preserve column
number identity with this approach.
regards, tom lane
В списке pgsql-hackers по дате отправления: