pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aasmund Midttun Godal <postgresql@envisity.com>
To: hherb@malleenet.net.au
Cc: pgsql-sql@postgresql.org
Subject: Re: constraint via selection
Date: Sat, 17 Nov 2001 19:09:59 GMT
Message-ID: <20011117190959.23001.qmail@ns.krot.org> (raw)
In-Reply-To: <20011117125544.6028.qmail@gnumed.dhs.org>
References: <20011117121312.5700.qmail@gnumed.dhs.org>
	<20011117125544.6028.qmail@gnumed.dhs.org>

I don't know much about this issue. but perhaps, since I assume the country codes are static, it would be faster if you just checked each individual value (especially if there are few of them) like so

CHECK code = 'no' OR code = 'de' OR code = 'se', etc.

I don't know.

Regards,

Aasmund.
On Sun, 18 Nov 2001 00:00:57 +1100, Horst Herb <hherb@malleenet.net.au> wrote:
> 
> Sorry, I probably should reformulate my question into "is there a more 
> effficient constraint than a foreign key constraint for this simple 
> problem"?
> 
> Horst
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org

Aasmund Midttun Godal

aasmund@godal.com - http://www.godal.com/
+47 40 45 20 46



view thread (4+ messages)  latest in thread

Message-ID: <20011117190959.23001.qmail@ns.krot.org>
Permalink:  ../20011117190959.23001.qmail@ns.krot.org/
Also on:    postgresql.org/message-id/20011117190959.23001.qmail@ns.krot.org

 · 

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: postgresql@envisity.com, hherb@malleenet.net.au
  Subject: Re: constraint via selection
  In-Reply-To: <20011117190959.23001.qmail@ns.krot.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