Re: Changing the number and type of columns in a view

From: Richard Huxton <dev(at)archonet(dot)com>
To: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Changing the number and type of columns in a view
Date: 2006-11-09 12:09:04
Message-ID: 45531A60.7020604@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Russell Smith wrote:
> Hi General,
>
> Is there a reason why it is not possible to redefine a view with a
> different number of columns or a different column type?
> It's been possible to change the datatypes of a table, and the column
> numbers for a long time. What are the restrictions on making this
> possible for views.
>
> I know you can drop an recreate the view, but if the view has dependent
> objects it becomes more difficult.

That's why - the dependent objects might have to change with it.

I suppose it should be possible to add columns to a view without causing
too many problems. Or change a column-definition provided it isn't
referenced anywhere.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Anton Melser 2006-11-09 12:12:29 Re: autovacuum blues
Previous Message Sandeep Kumar Jakkaraju 2006-11-09 12:07:41 Too many open cursors