From: | Thom Brown <thombrown(at)gmail(dot)com> |
---|---|
To: | Sim Zacks <sim(at)compulab(dot)co(dot)il> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: alter table alter type CASCADE |
Date: | 2010-05-05 09:12:34 |
Message-ID: | u2kbddc86151005050212r72c375b3x2d83ad4b219f75da@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2010/5/5 Sim Zacks <sim(at)compulab(dot)co(dot)il>
> One of the biggest problems I have maintaining a database with a lot of
> views is that when I want to change a datatype, I have to drop every
> view uses the column and every view that uses those views etc...
> This turns into a maintenance nightmare.
>
> Is there any intention of adding a CASCADE to alter type which would
> automatically update any dependencies with the new datatype? Obviously
> it should error out if it wouldn't have let you save one of the views
> with the new datatype.
>
> Thanks
> Sim
>
> --
Yes, there is an intention of adding such functionality (3rd item) but
probably not very straightforward:
http://wiki.postgresql.org/wiki/Todo#Views_.2F_Rules
Regards
Thom
From | Date | Subject | |
---|---|---|---|
Next Message | Cédric Villemain | 2010-05-05 10:43:22 | Re: (psuedo) random serial for PK or at least UNIQUE NOT NULL? |
Previous Message | Sim Zacks | 2010-05-05 08:56:36 | alter table alter type CASCADE |