Skip to content

Commit e2b9b66

Browse files
Konstantin KnizhnikMatthias van de Meent
authored andcommitted
don't force FPI if checksums are enabled
1 parent 9803de0 commit e2b9b66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/include/access/xlog.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ extern PGDLLIMPORT int wal_level;
130130
* of the bits make it to disk, but the checksum wouldn't match. Also WAL-log
131131
* them if forced by wal_log_hints=on.
132132
*/
133-
#define XLogHintBitIsNeeded() (DataChecksumsEnabled() || wal_log_hints)
133+
/*
134+
* NEON: don't force FPI if checksums are enabled. As mentioned above it was
135+
* done to protect from torn pages, but we don't seem to have this problem
136+
* in Neon as all pages arrive to pageserver via WAL.
137+
*/
138+
#define XLogHintBitIsNeeded() (wal_log_hints)
134139

135140
/* Do we need to WAL-log information required only for Hot Standby and logical replication? */
136141
#define XLogStandbyInfoActive() (wal_level >= WAL_LEVEL_REPLICA)

0 commit comments

Comments
 (0)