Re: Use of 8192 as BLCKSZ in xlog.c

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: Use of 8192 as BLCKSZ in xlog.c
Дата
Msg-id 438297B2.9040305@paradise.net.nz
обсуждение исходный текст
Ответ на Re: Use of 8192 as BLCKSZ in xlog.c  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Список pgsql-hackers
Qingqing Zhou wrote:
> "Mark Kirkwood" <markir@paradise.net.nz> wrote
> 
>>In two of the sections covered by #ifdef WAL_DEBUG there are declarations 
>>like:
>>
>>char        buf[8192];
>
> 
> 
> Those two 8192 have nothing to do with BLCKSZ, it is just an arbitrary 
> buffer size as long as it is big enough to hold debug information.
> 

Thanks - of course, different sort of buffer!

It is a bit more obvious now that I'm running with WAL_DEBUG enabled, 
and can see that nature of the output. As has been suggested, maybe a 
comment about the size and nature of 'buf' might be a nice addition.

cheers

Mark


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Are NULLs in Arrays compressed?
Следующее
От: Bob Ippolito
Дата:
Сообщение: Re: PostgreSQL 8.1.0 catalog corruption