Re: anti-join chosen even when slower than old plan

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Mladen Gogala" <mladen(dot)gogala(at)vmsinfo(dot)com>
Cc: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: anti-join chosen even when slower than old plan
Date: 2010-11-11 15:00:20
Message-ID: 4CDBB0A40200002500037571@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Mladen Gogala <mladen(dot)gogala(at)vmsinfo(dot)com> wrote:

> create a definitive bias toward one type of the execution plan.

We're talking about trying to support the exact opposite. This all
started because a database which was tuned for good response time
for relatively small queries against a "hot" portion of some tables
chose a bad plan for a weekend maintenance run against the full
tables. We're talking about the possibility of adapting the cost
factors based on table sizes as compared to available cache, to more
accurately model the impact of needing to do actual disk I/O for
such queries.

This also is very different from trying to adapt queries to what
happens to be currently in cache. As already discussed on a recent
thread, the instability in plans and the failure to get to an
effective cache set make that a bad idea. The idea discussed here
would maintain a stable plan for a given query, it would just help
choose a good plan based on the likely level of caching.

-Kevin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bob Lunney 2010-11-11 17:05:56 Re: anti-join chosen even when slower than old plan
Previous Message Kenneth Marshall 2010-11-11 14:28:09 Re: anti-join chosen even when slower than old plan