diff options
| author | Daniel Gustafsson | 2026-09-17 21:04:04 +0000 |
|---|---|---|
| committer | Daniel Gustafsson | 2026-09-17 21:04:04 +0000 |
| commit | 6b0760a10a32f2471c22eed7102f77c18d836423 (patch) | |
| tree | e6c9af27e24e4bb6ad856f9e7869290cd935f058 /src | |
| parent | 0f433a6b3576cc9d381c653ba9799960ac2e64c3 (diff) | |
Further post-revert cleanup after online checksumsREL_19_STABLE
When reverting I had missed updating the documentation for tracking data
checksum failures and the checksum version in the REDO record. The test-
code for enabling and disabling checksums offline was originally kept to
minimize backpatching conflicts, but the amount of testcode backpatching
doesn't really warrant keeping dead code.
Since no version has been shipped since bumping XLOG_PAGE_MAGIC it is
left at the previous bump version.
Reported-by: Fujii Masao <masao.fujii@gmail.com>
Reported-by: Manuel Reyes Bravo <manuelreyesbravo@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwFLNCA9nVHSsC_=G_mvsK_fAFb+QbJAL7=R9cK2PL9ZBQ@mail.gmail.com
Diffstat (limited to 'src')
| -rw-r--r-- | src/include/access/xlog_internal.h | 1 | ||||
| -rw-r--r-- | src/test/perl/PostgreSQL/Test/Cluster.pm | 36 |
2 files changed, 0 insertions, 37 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h index 6639dc19e32..7503c49f203 100644 --- a/src/include/access/xlog_internal.h +++ b/src/include/access/xlog_internal.h @@ -308,7 +308,6 @@ typedef struct xl_end_of_recovery typedef struct xl_checkpoint_redo { int wal_level; - uint32 data_checksum_version; } xl_checkpoint_redo; /* diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm index 366519e22b5..da8d5516b53 100644 --- a/src/test/perl/PostgreSQL/Test/Cluster.pm +++ b/src/test/perl/PostgreSQL/Test/Cluster.pm @@ -3992,42 +3992,6 @@ sub advance_wal } } -=item $node->checksum_enable_offline() - -Enable data page checksums in an offline cluster with B<pg_checksums>. The -caller is responsible for ensuring that the cluster is in the right state for -this operation. - -=cut - -sub checksum_enable_offline -{ - my ($self) = @_; - - print "# Enabling checksums in \"$self->data_dir\"\n"; - PostgreSQL::Test::Utils::system_or_bail('pg_checksums', '-D', - $self->data_dir, '-e'); - return; -} - -=item $node->checksum_disable_offline() - -Disable data page checksums in an offline cluster with B<pg_checksums>. The -caller is responsible for ensuring that the cluster is in the right state for -this operation. - -=cut - -sub checksum_disable_offline -{ - my ($self) = @_; - - print "# Disabling checksums in \"$self->data_dir\"\n"; - PostgreSQL::Test::Utils::system_or_bail('pg_checksums', '-D', - $self->data_dir, '-d'); - return; -} - =pod =back |
