Conditional constraint? - Mailing list pgsql-general

From Nick Haw
Subject Conditional constraint?
Date
Msg-id 71F468541618D3118DDF204C4F4F50204B1EC9@ThisAddressDoesNotExist
Whole thread Raw
Responses Re: Conditional constraint?  (Joel Burton <joel@joelburton.com>)
Re: [NOVICE] Conditional constraint?  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-general
Hi there, I have a problem that I can't fathom out.
 
What I want to do is make a field so that it requires a value after a change in another field to a particular value. Is this possible with the ADD CONSTRAINT command, or will I have to make a custom function and use a trigger.
 
Many thanks
 
Nick 
 

pgsql-general by date:

Previous
From: Richard Emberson
Date:
Subject: which JDBC driver
Next
From: Francisco Reyes
Date:
Subject: Re: scaling a database