Re: [HACKERS] Different BLKSZ - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Different BLKSZ
Date
Msg-id 3802FD18.4D6321F8@krs.ru
Whole thread Raw
In response to Re: [HACKERS] Different BLKSZ  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: [HACKERS] Different BLKSZ  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
Tatsuo Ishii wrote:
> 
> >
> >There is special file pg_control for the WAL purposes - good
> >place for the BLCKSZ...
> 
> Nice. Do you have some functions to access the file? Seems it is a
> binary file.

access/transam/xlog.c:StartupXLOG() is called on every database
startup and read control file - just add BLCKSZ to
struct ControlFileData and check it on startup. Don't forget
to initialize this value in BootStrapXLOG() (while creating
control file).

Vadim


pgsql-hackers by date:

Previous
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: Scripts (was Re: [HACKERS] Re: [INTERFACES] Next release is
Next
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] Different BLKSZ