Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation - Mailing list pgsql-patches

From Tatsuhito Kasahara
Subject Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation
Date
Msg-id 45F0DF3B.4060203@oss.ntt.co.jp
Whole thread Raw
In response to Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-patches
Hi.

Alvaro Herrera wrote:
>> In GetBTPageStatistics(),  stat->fragments is not initialized properly
>> so that invalid leaf_fragments values are inserted in results.
>
> Right.  Checking that code, it seems btpo.xact is also being incorrectly
> handled, is it not?
Yeah, I think so.

> Incidentally, the return value seems a bit useless.
Exactly. "Void" is enough.

--
NTT OSS Center
Tatsuhito Kasahara

kasahara.tatsuhito _at_ oss.ntt.co.jp

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation
Next
From: NikhilS
Date:
Subject: Re: log_autovacuum