Re: patch: Add columns via CREATE OR REPLACE VIEW
| От | Alvaro Herrera |
|---|---|
| Тема | Re: patch: Add columns via CREATE OR REPLACE VIEW |
| Дата | |
| Msg-id | 20080807180139.GK4171@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: patch: Add columns via CREATE OR REPLACE VIEW (Andrew Dunstan <andrew@dunslane.net>) |
| Ответы |
Re: patch: Add columns via CREATE OR REPLACE VIEW
|
| Список | pgsql-hackers |
Andrew Dunstan escribió: > > > Tom Lane wrote: >> Maybe the right way is to *not* use CREATE OR REPLACE VIEW, but >> rather ALTER VIEW ADD COLUMN and so on. Then column identity seems >> a lot easier to keep track of. > > How would that look? Where would we put the new query? I was thinking that the ADD COLUMN should specify the new result list entry. Of course, this doesn't allow changing the query in more complex ways (e.g. you can't add a GROUP BY clause that wasn't already there). -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления: