Re: BUG #12584: small bug about estimation of rows

From: Tomonari Katsumata <t(dot)katsumata1122(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12584: small bug about estimation of rows
Date: 2015-01-19 02:46:18
Message-ID: CAC55fYdSSZqk9QBHnfZiuG6rPvA9im=KBRAaqd7TmWF8JvP1Zg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

Thank you for the fix.

2015-01-19 7:06 GMT+09:00, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> t(dot)katsumata1122(at)gmail(dot)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.
>
I think it's good to avoid undesirable risk.

Thank you very much again!

regards,
-------------
Tomonari Katsumata

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message aromashkin 2015-01-19 10:22:19 BUG #12597: pgpool 9.4 utilites error libpcp.so.0:
Previous Message Tom Lane 2015-01-18 22:06:37 Re: BUG #12584: small bug about estimation of rows