Change view definition - do not have to drop it

From: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Change view definition - do not have to drop it
Date: 2009-06-02 18:13:58
Message-ID: 4A256BE6.7060107@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Original view1 (col1 bpchar, col2 varchar).

Now I need update view1 definition to
create or replace view view1 as select col1, col2 from new_table;

However, col1 in new_table is not bpchar. This gives me headache! There
are tens of dependent views based on view1, so I cannot just drop view1
and recreate it.

How I can redefine view1 without dropping it and recreate it?

Thanks a lot!

--
Lu Ying

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2009-06-02 18:36:08 Re: Really out of memory?
Previous Message Ben Chobot 2009-06-02 18:10:04 Really out of memory?