Re: Inheritance, unique keys and performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Julian Scarfe" <julian(at)avbrief(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Inheritance, unique keys and performance
Date: 2008-01-13 18:46:43
Message-ID: 7212.1200250003@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Julian Scarfe" <julian(at)avbrief(dot)com> writes:
>> Without the EXPLAIN ANALYZE output, nobody can say whether you have
>> interpreted your performance problem correctly or not.

> Fair enough, Tom.

Okay, so the "expensive function" isn't as expensive as all that ---
it seems to be adding only a few msec to the total runtime. The
problem you've got is that you need a nestloop-with-inner-indexscan
plan type, where the inner side is an Append group (that is, an
inheritance tree) --- and 8.1 doesn't know how to create such a plan.
If you can update to 8.2 or later it should get better.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Julian Scarfe 2008-01-13 19:28:18 Re: Inheritance, unique keys and performance
Previous Message Julian Scarfe 2008-01-13 09:13:21 Re: Inheritance, unique keys and performance