From: Marc G. Fournier <scrappy@postgresql.org>
To: pgsql-performance@postgresql.org
Subject: CHECK vs REFERENCES
Date: Sat, 10 Sep 2005 00:23:19 -0300 (ADT)
Message-ID: <20050910001821.E1170@ganymede.hub.org> (raw)
Which is faster, where the list involved is fixed? My thought is that
since it doesn't have to check a seperate table, the CHECK itself should
be the faster of the two, but I can't find anything that seems to validate
that theory ...
The case is where I just want to check that a value being inserted is one
of a few possible values, with that list of values rarely (if ever)
changing, so havng a 'flexible list' REFERENCED seems relatively overkill
...
Thoughts, or pointers to a doc that disproves, or proves, what I believe?
Thanks ...
----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664
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-performance@postgresql.org
Cc: scrappy@postgresql.org
Subject: Re: CHECK vs REFERENCES
In-Reply-To: <20050910001821.E1170@ganymede.hub.org>
References: <20050910001821.E1170@ganymede.hub.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