Thoughts on a cosntraint ? - Mailing list pgsql-general

From stan
Subject Thoughts on a cosntraint ?
Date
Msg-id 20190929194020.GA16517@panix.com
Whole thread Raw
Responses Re: Thoughts on a cosntraint ?
Re: Thoughts on a cosntraint ?
List pgsql-general
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.

I would be interested in seeing other peoples approaches on this, also.

Any thoughts? 
-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                        -- Benjamin Franklin



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Possible bug: SQL function parameter in window frame definition
Next
From: John W Higgins
Date:
Subject: Re: Thoughts on a cosntraint ?