Alvaro Herrera <[EMAIL PROTECTED]> writes: > 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. Yeah, that's what I was thinking too. If you needed to change more than just the topmost SELECT list, you'd need two steps: an ADD COLUMN and then CREATE OR REPLACE VIEW to change the query in some way that doesn't result in changing the output column set. Maybe that's going to be too awkward to use though. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers