Re: Use of 8192 as BLCKSZ in xlog.c - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: Use of 8192 as BLCKSZ in xlog.c
Date
Msg-id dlu0m8$2fr7$1@news.hub.org
Whole thread Raw
In response to Use of 8192 as BLCKSZ in xlog.c  (Mark Kirkwood <markir@paradise.net.nz>)
Responses Re: Use of 8192 as BLCKSZ in xlog.c  (Michael Glaesemann <grzm@myrealbox.com>)
Re: Use of 8192 as BLCKSZ in xlog.c  (Mark Kirkwood <markir@paradise.net.nz>)
List pgsql-hackers
"Mark Kirkwood" <markir@paradise.net.nz> wrote
> In two of the sections covered by #ifdef WAL_DEBUG there are declarations 
> like:
>
> char        buf[8192];
>
> It seems to me that these should be:
>
> char        buf[BLCKSZ];
>

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.

Regards,
Qingqing 




pgsql-hackers by date:

Previous
From: Mark Kirkwood
Date:
Subject: Use of 8192 as BLCKSZ in xlog.c
Next
From: Michael Glaesemann
Date:
Subject: Re: Use of 8192 as BLCKSZ in xlog.c