From: Tom Lane <tgl@sss.pgh.pa.us>
To: t.katsumata1122@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12584: small bug about estimation of rows
Date: Sun, 18 Jan 2015 17:06:37 -0500
Message-ID: <20684.1421618797@sss.pgh.pa.us> (raw)
In-Reply-To: <20150118033020.1991.7172@wrigleys.postgresql.org>
References: <20150118033020.1991.7172@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
t.katsumata1122@gmail.com writes:
> I found a bug about estimating rows without pg_class.reltuples.
> ...
> It should be using sizeof(ItemIdData) at line 512, so the estimated rows
> should be "rows=2260".
> I could understand ignoring alignment of data here from comment of the
> source code,
> but I couldn't find the reason of using sizeof(ItemPointerData) at this
> point.
> Usually this would not cause big problem, but it seems odd to me.
> Is there any reason to use sizeof(ItemPointerData) ?
You're absolutely right, that's a thinko. Adjusted in HEAD. I'm not
inclined to back-patch it though, since there's a risk of changing
plan choices which is something we don't like to do in stable branches
unless the planner is clearly doing the wrong thing.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, t.katsumata1122@gmail.com
Subject: Re: BUG #12584: small bug about estimation of rows
In-Reply-To: <20684.1421618797@sss.pgh.pa.us>
References: <20150118033020.1991.7172@wrigleys.postgresql.org> <20684.1421618797@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