CREATE DOMAIN with referential integrity

From: "regme please" <regmeplease(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: CREATE DOMAIN with referential integrity
Date: 2008-08-20 14:07:32
Message-ID: 446c7e870808200707p49305450if32a56254807396e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

HI all.
Is there a way to CREATE a DOMAIN in v8.3 with a CHECK() predicate to ensure
the value is in a dictionary table?
Of course, I already know the trivial and ugly solution with a (PL/Pg)SQL
lookup function.

Thanks.

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2008-08-20 14:13:58 Re: schema name in SQL statement.
Previous Message Matthew Pettis 2008-08-20 13:59:01 Re: Fwd: Restarting with pg_ctl, users, and passwords.