Re: Check/unique constraint question

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Check/unique constraint question
Date: 2006-03-05 10:29:42
Message-ID: 20060305102942.GA7051@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sun, Mar 05, 2006 at 12:02:58PM +0300, Nikolay Samokhvalov wrote:

> Unfortunately, at the moment Postgres doesn't support subqueries in
> CHECK constraints, so it's seems that you should use trigger to check
> what you need
The OP could also use a check constraint with a function if
everything (the context) but the value to check is known
beforehand or can be derived from it.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Glaesemann 2006-03-05 11:50:28 Re: Check/unique constraint question
Previous Message Volkan YAZICI 2006-03-05 10:05:27 Re: Check/unique constraint question