pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tomas Vondra <tv@fuzzy.cz>
To: pgsql-performance@postgresql.org
Subject: Re: Performance
Date: Tue, 26 Apr 2011 20:54:34 +0200
Message-ID: <4DB714EA.6090106@fuzzy.cz> (raw )
In-Reply-To: <11589CE9-B860-4024-BCDF-88FBE00FB9BC@gmail.com >
References: <DF2D5436-117C-4D02-9B3C-A55723B7DDE1@darkstatic.com >
<20110412171855.GA14292@tux >
<FC3A3A2B-3ECB-41BA-8F94-356D6FED3695@darkstatic.com >
<4DA496FA.3070908@fuzzy.cz >
<8F22D592-23C1-4A3C-94A5-48363332ADD3@darkstatic.com >
<4DA4BFA2.5060601@fuzzy.cz >
<B93DFBBB-DA56-4044-A508-0B7E4A2CFD28@darkstatic.com >
<4DA4D40A.4010200@fuzzy.cz >
<A0B9339E-9D58-4842-A206-050B773360B6@darkstatic.com >
<4DA56DA8020000250003C783@gw.wicourts.gov >
<BANLkTinJqXqErAtQg--1MOaw2LJNFZmwOg@mail.gmail.com >
<BANLkTimyWkoX8Dj=4CKAjhY82ibru-An7g@mail.gmail.com >
<4DA6216E.9020907@fuzzy.cz >
<11589CE9-B860-4024-BCDF-88FBE00FB9BC@gmail.com >
Dne 26.4.2011 07:35, Robert Haas napsal(a):
> On Apr 13, 2011, at 6:19 PM, Tomas Vondra <tv@fuzzy.cz> wrote:
>> Yes, I've had some lectures on non-linear programming so I'm aware that
>> this won't work if the cost function has multiple extremes (walleys /
>> hills etc.) but I somehow suppose that's not the case of cost estimates.
>
> I think that supposition might turn out to be incorrect, though. Probably
> what will happen on simple queries is that a small change will make no
> difference, and a large enough change will cause a plan change. On
> complex queries it will approach continuous variation but why
> shouldn't there be local minima?
Aaaah, damn! I was not talking about cost estimates - those obviously do
not have this feature, as you've pointed out (thanks!).
I was talking about the 'response time' I mentioned when describing the
autotuning using real workload. The idea is to change the costs a bit
and then measure the average response time - if the overall performance
improved, do another step in the same direction. Etc.
I wonder if there are cases where an increase of random_page_cost would
hurt performance, and another increase would improve it ... And I'm not
talking about individual queries, I'm talking about overall performance.
regards
Tomas
view thread (60+ messages) latest in thread
Message-ID: <4DB714EA.6090106@fuzzy.cz>
Permalink: ../4DB714EA.6090106@fuzzy.cz/
Also on: postgresql.org/message-id/4DB714EA.6090106@fuzzy.cz
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tv@fuzzy.cz
Subject: Re: Performance
In-Reply-To: <4DB714EA.6090106@fuzzy.cz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox