Search Postgresql Archives

Re: Partial foreign keys, check constraints and inheritance

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

 



On Thu, Nov 17, 2005 at 02:21:33PM -0500, Eric E wrote:
> >maybe you can solve it adding a new col and allow both to contain null 
> >values.
> >
> >if these are not mutually exclusive you can avoid a check if they are
> >check that if one has a non-null value other has null...
> 
> 
> I did think about that, but I disliked the idea of two fields of nulls for 
> every one full field.... maybe it's not as bad a way of doing it as I 
> thought.

What's wrong with multiple NULL fields? It's probably the cleanest,
fastest way to do this...
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@xxxxxxxxxxxxx
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


[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