Re: constraints and performance - Mailing list pgsql-admin

From scott.marlowe
Subject Re: constraints and performance
Date
Msg-id Pine.LNX.4.33.0402110859280.32376-100000@css120.ihs.com
Whole thread Raw
In response to constraints and performance  (Jodi Kanter <jkanter@virginia.edu>)
List pgsql-admin
On Wed, 11 Feb 2004, Jodi Kanter wrote:

> Do constraints effect performance significantly?

That depends.

Foreign key constraints on int4 columns or int8 columns (matching of
course) are usually quite fast.

FK constraints on non-int (numeric, text, etc...) tend to be slower.

check constraints can be a killer if they are complex or use functions,
but simple check constraints are usually alright.

Do you have a specific use case you're looking at?


pgsql-admin by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: hanging for 30sec when checkpointing
Next
From: Tom Lane
Date:
Subject: Re: IDE and write cache