View Single Post

   
  #4 (permalink)  
Old 04-18-2008, 10:40 AM
Tatsuhito Kasahara
 
Posts: n/a
Default Re: Patch for pgstatindex to fix a bug reporting a valueof strange leaf_fragmentation

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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply With Quote