Re: How to create unique constraint on NULL columns

From: Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
To: Andrus <eetasoft(at)online(dot)ee>
Subject: Re: How to create unique constraint on NULL columns
Date: 2005-07-16 22:22:27
Message-ID: 42D988A3.1060405@cheapcomplexdevices.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrus wrote:
>>Then redesign this as a many to many relation. ...
>
> This means adding separate row for each department into permission table.

Not really.

You can of course store an Array of department IDs in that same table.
That would probably cause the minimum impact on your queries too.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-07-17 09:35:25 Re: foreign key constraints and inheritence
Previous Message Ron Mayer 2005-07-16 22:18:24 Re: Converting MySQL tinyint to PostgreSQL