From: Josep Carles Collazos <maniac@maniac.ddns.org>
To: pgsql-sql@postgreSQL.org
Subject: Unique index on non-erased values
Date: Tue, 16 Jun 1998 00:01:21 +0200 (CEST)
Message-ID: <XFMail.980616000121.maniac@maniac.ddns.org> (raw)
I have a table with users in this manner:
create table users (
id char(8) not null,
active boolean,
erased boolean
)
I wat to ensure that the id is a unique index but only among the non-erased
users (Those who erased is false).
Someone can help me ?
An other question. PostgreSQL supports constraints ?
Can I simulate constraints of some manner ?
thx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: maniac@maniac.ddns.org
Subject: Re: Unique index on non-erased values
In-Reply-To: <XFMail.980616000121.maniac@maniac.ddns.org>
References: <XFMail.980616000121.maniac@maniac.ddns.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox