pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gregory Stark <stark@enterprisedb.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Bill Moran <wmoran@collaborativefusion.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: TB-sized databases
Date: Thu, 29 Nov 2007 10:45:31 -0500
Message-ID: <13851.1196351131@sss.pgh.pa.us> (raw )
In-Reply-To: <878x4hmfd4.fsf@oxford.xeocode.com >
References: <4544e0330711260904g45d893a8ub1731e245aa8fc84@mail.gmail.com >
<474B1407.3090607@laotraesquina.com.ar >
<474B1B8C.1030505@gmail.com >
<4544e0330711271218h56ce4cc3p280a9fefff24583d@mail.gmail.com >
<1196197045.4246.1154.camel@ebony.site >
<474CA2FA.2020201@laotraesquina.com.ar >
<Pine.LNX.4.58.0711281248290.3731@aragorn.flymine.org >
<20071128082716.91bbad9c.wmoran@collaborativefusion.com >
<1196257702.31315.6.camel@PCD12478 >
<1196270576.4246.1246.camel@ebony.site >
<878x4hmfd4.fsf@oxford.xeocode.com >
Gregory Stark <stark@enterprisedb.com> writes:
> "Simon Riggs" <simon@2ndquadrant.com> writes:
>> Tom's previous concerns were along the lines of "How would know what to
>> set it to?", given that the planner costs are mostly arbitrary numbers.
> Hm, that's only kind of true.
The units are not the problem. The problem is that you are staking
non-failure of your application on the planner's estimates being
pretty well in line with reality. Not merely in line enough that
it picks a reasonably cheap plan, but in line enough that if it
thinks plan A is 10x more expensive than plan B, then the actual
ratio is indeed somewhere near 10.
Given that this list spends all day every day discussing cases where the
planner is wrong, I'd have to think that that's a bet I wouldn't take.
You could probably avoid this risk by setting the cutoff at something
like 100 or 1000 times what you really want to tolerate, but how
useful is it then?
regards, tom lane
view thread (61+ messages) latest in thread
Message-ID: <13851.1196351131@sss.pgh.pa.us>
Permalink: ../13851.1196351131@sss.pgh.pa.us/
Also on: postgresql.org/message-id/13851.1196351131@sss.pgh.pa.us
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: tgl@sss.pgh.pa.us, stark@enterprisedb.com, simon@2ndquadrant.com, nagy@ecircle-ag.com, wmoran@collaborativefusion.com
Subject: Re: TB-sized databases
In-Reply-To: <13851.1196351131@sss.pgh.pa.us>
* 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