Re: [HACKERS] Some notes on optimizer cost estimates - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Some notes on optimizer cost estimates
Date
Msg-id 25651.948417079@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Some notes on optimizer cost estimates  (Mike Mascari <mascarm@mascari.com>)
List pgsql-hackers
Mike Mascari <mascarm@mascari.com> writes:
>> to be useful for cost estimating.  We could make it a parameter like
>> we do for CPU_PAGE_WEIGHT ... but you know and I know that no one
>> ever bothers to adjust those numbers in the field ...

> Would it be possible to place those parameters as run-time
> settings and then write a utility that can ship with the
> distribution to determine those values? Kind of a self-tuning
> utility? 

Maybe.  I'm not sure the average user would want to run it ---
to get believable numbers, you have to be using a table considerably
bigger than the kernel's disk cache, which means it takes a while.
(I've been testing with a gigabyte-sized table ... one of the index
scan runs took thirty hours :-( ... fortunately I have this machine
to myself, or there would have been some howls about the load.)

But it'd be nice to have comparable numbers for different platforms.
What I was really hoping was that someone on the list would be aware
of existing research I could borrow from.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Mike Mascari
Date:
Subject: Re: [HACKERS] Some notes on optimizer cost estimates
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] Some notes on optimizer cost estimates