pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: G. Anthony Reina <reina@nsi.edu>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Can I CONSTRAIN a particular value to be UNIQUE?
Date: Thu, 29 Nov 2001 12:48:04 -0800
Message-ID: <3C069F04.50FC3BFD@nsi.edu> (raw)
References: <20011129115442.X45413-100000@megazone23.bigpanda.com>

Stephan Szabo wrote:

> Not really within what we provide (theoretically you could probably do
> it with a subselect in check I think). You'll probably will want to look
> at writing a plpgsql trigger to do the check.

Yes, I was hoping that something like CHECK or perhaps a RULE would work,
but it appears that the easiest way may be using an external program.

Thanks Stephan.
-Tony





view thread (7+ messages)  latest in thread

Message-ID: <3C069F04.50FC3BFD@nsi.edu>
Permalink:  ../3C069F04.50FC3BFD@nsi.edu/
Also on:    postgresql.org/message-id/3C069F04.50FC3BFD@nsi.edu

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: reina@nsi.edu, sszabo@megazone23.bigpanda.com
  Subject: Re: Can I CONSTRAIN a particular value to be UNIQUE?
  In-Reply-To: <3C069F04.50FC3BFD@nsi.edu>

* 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