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

From Tatsuo Ishii
Subject Re: [HACKERS] Different BLKSZ
Date
Msg-id 199910121029.TAA03928@srapc451.sra.co.jp
Whole thread Raw
In response to Re: [HACKERS] Different BLKSZ  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
>>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).
>
>Thanks. I will work on this issue.

I have committed changes to xlog.c. If the blcksz of database does not
match the one of the backend, you will get following error message and
postmaster won't start.

DEBUG:  Data Base System is starting up at Tue Oct 12 19:11:03 1999
FATAL 2:  database was initialized in BLCKSZ(0), but the backend was
compiled in BLCKSZ(8192)

This change requires initdb.
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Horak Daniel
Date:
Subject: win32 port on newer Cygwin snapshots (990115)
Next
From: Peter Eisentraut
Date:
Subject: It's PR time!