doc: update the default of data checksums in the doc of pg_rewind
doc: update the default of data checksums in the doc of pg_rewind
Hi, I noticed that the pg_rewind documentation still states that data checksums is disabled by default, but it has been changed to on since PG18. Here's a small patch to update this. Best Regards, Hou zj
Re: doc: update the default of data checksums in the doc of pg_rewind
От:
Fujii Masao <masao.fujii@gmail.com>
Дата:
On Wed, Dec 24, 2025 at 4:28 PM Zhijie Hou (Fujitsu) wrote: > > Hi, > > I noticed that the pg_rewind documentation still states that data > checksums is disabled by default, but it has been changed to on since PG18. > > Here's a small patch to update this. Thanks for the patch! - the cluster was initialized with initdb. Neither of these - are currently on by default. - must also be set to on, but is enabled by default. + the cluster was initialized with initdb (the latter + being the default). must also be set + to on, but is enabled by default. Isn't "(the default)" enough here instead of "(the latter being the default)"? Regards, -- Fujii Masao
Re: doc: update the default of data checksums in the doc of pg_rewind
От:
Chao Li <li.evan.chao@gmail.com>
Дата:
> On Dec 24, 2025, at 15:27, Zhijie Hou (Fujitsu) wrote: > > Hi, > > I noticed that the pg_rewind documentation still states that data > checksums is disabled by default, but it has been changed to on since PG18. > > Here's a small patch to update this. > > Best Regards, > Hou zj > ``` - the cluster was initialized with initdb. Neither of these - are currently on by default. - must also be set to on, but is enabled by default. + the cluster was initialized with initdb (the latter + being the default). must also be set + to on, but is enabled by default. ``` I think we can explicitly mention PG18 and later, like: ``` the cluster was initialized with initdb (data checksums are enabled by default in PostgreSQL 18 and later). ``` I searched over the docs, the usage of “ and later” is not rare, for example: ``` pg_amcheck is designed to work with PostgreSQL 14.0 and later. ``` Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/
RE: doc: update the default of data checksums in the doc of pg_rewind
От:
"Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Дата:
On Thursday, December 25, 2025 8:22 AM Chao Li wrote: > > > On Dec 24, 2025, at 15:27, Zhijie Hou (Fujitsu) > wrote: > > > > Hi, > > > > I noticed that the pg_rewind documentation still states that data > > checksums is disabled by default, but it has been changed to on since PG18. > > > > Here's a small patch to update this. > > > > Best Regards, > > Hou zj > > > > > ``` > - the cluster was initialized with initdb. Neither > of these > - are currently on by default. > - must also be set to on, but is enabled by default. > + the cluster was initialized with initdb (the > latter > + being the default). must also be set > + to on, but is enabled by default. > ``` > > I think we can explicitly mention PG18 and later, like: > ``` > the cluster was initialized with initdb (data > checksums are enabled by default in PostgreSQL 18 and later). > ``` > > I searched over the docs, the usage of “ and later” is not rare, for > example: > ``` > > pg_amcheck is designed to work with > PostgreSQL 14.0 and later. > > ``` I think including a version number here is necessary, as pg_rewind is not compatible with older PostgreSQL versions. It should be the release notes of PostgreSQL 18 to reflect changes in default values, rather than the pg_rewind doc mentioning a behavior change. (We don't mention version number in initdb's doc as well) Best Regards, Hou zj
RE: doc: update the default of data checksums in the doc of pg_rewind
On Thursday, December 25, 2025 8:04 AM Fujii Masao wrote: > On Wed, Dec 24, 2025 at 4:28 PM Zhijie Hou (Fujitsu) > wrote: > > > > Hi, > > > > I noticed that the pg_rewind documentation still states that data > > checksums is disabled by default, but it has been changed to on since PG18. > > > > Here's a small patch to update this. > > Thanks for the patch! > > - the cluster was initialized with > initdb. Neither of these > - are currently on by default. > - must also be set to on, but is enabled by default. > + the cluster was initialized with initdb > (the latter > + being the default). must also be set > + to on, but is enabled by default. > > Isn't "(the default)" enough here instead of "(the latter being the default)"? Agreed. Here is the updated patch. Best Regards, Hou zj
RE: doc: update the default of data checksums in the doc of pg_rewind
От:
"Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Дата:
On Thursday, December 25, 2025 11:14 AM Zhijie Hou (Fujitsu) wrote: > On Thursday, December 25, 2025 8:22 AM Chao Li > wrote: > > > > > On Dec 24, 2025, at 15:27, Zhijie Hou (Fujitsu) > > > > > wrote: > > > > > > Hi, > > > > > > I noticed that the pg_rewind documentation still states that data > > > checksums is disabled by default, but it has been changed to on since > PG18. > > > > > > Here's a small patch to update this. > > > > > > Best Regards, > > > Hou zj > > > > > > > > > ``` > > - the cluster was initialized with initdb. > Neither > > of these > > - are currently on by default. > > - must also be set to on, but is enabled by default. > > + the cluster was initialized with initdb > > + (the > > latter > > + being the default). must also be > set > > + to on, but is enabled by default. > > ``` > > > > I think we can explicitly mention PG18 and later, like: > > ``` > > the cluster was initialized with initdb > > (data checksums are enabled by default in PostgreSQL 18 and later). > > ``` > > > > I searched over the docs, the usage of “ and later” is not > > rare, for > > example: > > ``` > > > > pg_amcheck is designed to work with > > PostgreSQL 14.0 and later. > > > > ``` > > I think including a version number here is necessary, as pg_rewind is not > compatible with older PostgreSQL versions. It should be the release notes of > PostgreSQL 18 to reflect changes in default values, rather than the pg_rewind > doc mentioning a behavior change. (We don't mention version number in > initdb's doc as well) Sorry, a typo above, 'necessary' -> 'unnecessary'. Best Regards, Hou zj