Difference between check and a small table

From: <enio(at)pmpf(dot)rs(dot)gov(dot)br>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Difference between check and a small table
Date: 2003-10-17 16:58:03
Message-ID: 20031017165803.B4D1746E16@mail.passofundo.rs.gov.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

Suppose I have one table, and one field (of this table) which accepts only a
certain range of values (they do not need to be continuous though).
What is the difference in the number of operations performed by postgres on
insert/update of data to this field if I use:
- check clauses
OR
- a foreign key referencing another small table with those values?

Is there any significant performance improvement in using one method instead
of another?

Thanks in advance,
Enio

Browse pgsql-general by date

  From Date Subject
Next Message Michael Meskes 2003-10-17 17:18:46 Re: ecpg and blob's
Previous Message Manfred Koizar 2003-10-17 16:57:24 Re: ShmemAlloc errors