Re: TPC-R benchmarks - Mailing list pgsql-performance

From Tom Lane
Subject Re: TPC-R benchmarks
Date
Msg-id 29371.1065586557@sss.pgh.pa.us
Whole thread Raw
In response to Re: TPC-R benchmarks  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
> To sum up the below:  it appears that whenever a set of WHERE conditions
> exceeds a certain level of complexity, the planner just ignores all
> applicable indexes and goes for a seq scan.

It looks to me like the planner is coercing the WHERE clause into
canonical OR-of-ANDs form (DNF).  Which is often a good heuristic
but it seems unhelpful for this query.

> How can we fix this?

Feel free to propose improvements to the heuristics in
src/backend/optimizer/prep/prepqual.c ...

            regards, tom lane

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: TPC-R benchmarks
Next
From: Jeff
Date:
Subject: Sun performance - Major discovery!