alter table impact on view - Mailing list pgsql-general

From Marc Millas
Subject alter table impact on view
Date
Msg-id CADX_1aYPNpX2DKS8bP=aU3UgNPQXtv2iKjCbsL8AkxU13486Fg@mail.gmail.com
Whole thread Raw
Responses Re: alter table impact on view
List pgsql-general
Hello,

to my understanding, if I do alter table rename column, Postgres change the name of the said column, and modify the views using that table so that they keep working (NOT oracle behaviour..)
fine.
But if I alter table to change a column that is a varchar 20 into a varchar 21
postgres refuse saying that it cannot due to the return rule... using said column

why ?? as the view is not a materialized object, the impact of the length of a column of an underlying table do change the description of the view, clearly, but I dont see where the difficulty is "hidden". Can someone enlighten me?

thanks,

Marc MILLAS
Senior Architect
+33607850334

pgsql-general by date:

Previous
From: veem v
Date:
Subject: Re: Sequence vs UUID
Next
From: David Rowley
Date:
Subject: Re: alter table impact on view