[SQL] FK Constraints, indexes and performance

2003-10-05 Thread ow
Pg 7.3.3 on i386 compiled by GCC 2.96 Hi, It's understood that FK constraints carry some performance hit. However, the performance hit I observe is huge. My situation is illustrated by the table structures below. Parent table has 20,000 rows and Child table has about 60,000. Without

Re: [SQL] FK Constraints, indexes and performance

2003-10-05 Thread Tom Lane
ow [EMAIL PROTECTED] writes: It's understood that FK constraints carry some performance hit. However, the performance hit I observe is huge. It looks to me like the 7.3 planner will not choose indexscans for the FK check queries in this example, because the comparison operators are misconstrued

Re: [SQL] FK Constraints, indexes and performance

2003-10-05 Thread Peter Childs
On Monday 06 October 2003 01:29, ow wrote: Pg 7.3.3 on i386 compiled by GCC 2.96 Hi, It's understood that FK constraints carry some performance hit. However, the performance hit I observe is huge. My situation is illustrated by the table structures below. Parent table has 20,000 rows and