Re: Printing bitmap objects in the debugger

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Printing bitmap objects in the debugger
Дата
Msg-id 20160914145137.GA462997@alvherre.pgsql
обсуждение исходный текст
Ответ на Printing bitmap objects in the debugger  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Ответы Re: Printing bitmap objects in the debugger  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Ashutosh Bapat wrote:
> Hi All,
> While working on partition-wise join, I had to examine Relids objects
> many times. Printing the Bitmapset::words[] in binary format and then
> inferring the relids takes time and is error prone. Instead I wrote a
> function bms_to_char() which allocates a StringInfo, calls
> outBitmapset() to decode Bitmapset as a set of integers and returns
> the string. In order to examine a Relids object all one has to do is
> execute 'p bms_to_char(bms_object) under gdb.

I don't understand.  Why don't you just use "call pprint(the bitmapset)"
in the debugger?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Surprising behaviour of \set AUTOCOMMIT ON
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Printing bitmap objects in the debugger