Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation
Дата
Msg-id 20070309031738.GA19555@alvh.no-ip.org
обсуждение исходный текст
Ответ на Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation  (Tatsuhito Kasahara <kasahara.tatsuhito@oss.ntt.co.jp>)
Ответы Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation  (Tatsuhito Kasahara <kasahara.tatsuhito@oss.ntt.co.jp>)
Список pgsql-patches
Tatsuhito Kasahara wrote:
> Hello.
>
> I found a bug in contrib/pgstatindex.c to reports a strange value of
> leaf_fragmentation with some cases.
> #Look the following test example.
>
> 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?  Incidentally, the return value seems a bit useless.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Nikolay Samokhvalov"
Дата:
Сообщение: Re: xpath_array with namespaces support
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Patch for pgstatindex to fix a bug reporting a value of strange leaf_fragmentation