Re: Thoughts on a cosntraint ? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Thoughts on a cosntraint ?
Date
Msg-id b8fe02b3-abf9-445f-49f7-af13486590f5@aklaver.com
Whole thread Raw
In response to Thoughts on a cosntraint ?  (stan <stanb@panix.com>)
List pgsql-general
On 9/29/19 12:40 PM, stan wrote:
> I have a table that consists of 3 columns.
> 
> vendor_key
> mfg_key
> preferred (boolean)
> 
> The idea is that a given vendor is the vendor we want to use for each
> manufacturer for a given project.
> 
> I need to constrain such that  only on row of mfg, vendor and project can
> be set to TRUE.

Where is the project id?

> 
> I would be interested in seeing other peoples approaches on this, also.
> 
> Any thoughts?
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Rob Sargent
Date:
Subject: Re: Thoughts on a cosntraint ?
Next
From: "Colin 't Hart"
Date:
Subject: Redis 16 times faster than Postgres?