471,316 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

Difference between check and a small table

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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #1
0 935

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Luc Martineau | last post: by
3 posts views Thread by mike | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.