Search Postgresql Archives

Re: deleting the master but not the detail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So is there no other way to do it but to verify the integrity using triggers
and drop the referential constraints?

Because I *still* need to verify that NEW records in the details table
direct to something that exists


> 
>> ON DELETE RESTRICT | NO ACTION won't let me delete the master
>> CASCADE | SET NULL | SET DEFAULT will modify the details
> 
> Can you just drop the constraint that's doing the referential integrity?
> 
> Ray.
> 
> Then remove the referential integrity constraint, since it's obviously
> incompatible with your business requirements.
>  
> -Doug
_________________________________________________________________
Plug&Play te trae en exclusiva los mejores conciertos de la red
http://club.prodigymsn.com/ 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux