Re: pgstattuple extension for indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgstattuple extension for indexes
Дата
Msg-id 8453.1157336021@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgstattuple extension for indexes  (Satoshi Nagayasu <nagayasus@nttdata.co.jp>)
Список pgsql-patches
Satoshi Nagayasu <nagayasus@nttdata.co.jp> writes:
> Tom Lane wrote:
>> pgstatindex.c: In function 'bt_page_items':
>> pgstatindex.c:564: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'

> I guess my '%d' should be '%zd', right?

No, that sounds even less portable :-(

Given the expected range of IndexTupleSize(), it seems sufficient to
cast its result to int and then use %d formatting.  I've done that
in the latest commit.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgstattuple extension for indexes
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] python / 7.4 / FC5 / x86_64