pgsql: Avoid integer overflow while testing wal_skip_threshold conditio

2025-01-30 Thread Tom Lane
Avoid integer overflow while testing wal_skip_threshold condition. smgrDoPendingSyncs had two distinct risks of integer overflow while deciding which way to ensure durability of a newly-created relation. First, it accumulated the total size of all forks in a variable of type BlockNumber (uint32).

pgsql: Avoid integer overflow while testing wal_skip_threshold conditio

2025-01-30 Thread Tom Lane
Avoid integer overflow while testing wal_skip_threshold condition. smgrDoPendingSyncs had two distinct risks of integer overflow while deciding which way to ensure durability of a newly-created relation. First, it accumulated the total size of all forks in a variable of type BlockNumber (uint32).

pgsql: Avoid integer overflow while testing wal_skip_threshold conditio

2025-01-30 Thread Tom Lane
Avoid integer overflow while testing wal_skip_threshold condition. smgrDoPendingSyncs had two distinct risks of integer overflow while deciding which way to ensure durability of a newly-created relation. First, it accumulated the total size of all forks in a variable of type BlockNumber (uint32).

pgsql: Avoid integer overflow while testing wal_skip_threshold conditio

2025-01-30 Thread Tom Lane
Avoid integer overflow while testing wal_skip_threshold condition. smgrDoPendingSyncs had two distinct risks of integer overflow while deciding which way to ensure durability of a newly-created relation. First, it accumulated the total size of all forks in a variable of type BlockNumber (uint32).

pgsql: Avoid integer overflow while testing wal_skip_threshold conditio

2025-01-30 Thread Tom Lane
Avoid integer overflow while testing wal_skip_threshold condition. smgrDoPendingSyncs had two distinct risks of integer overflow while deciding which way to ensure durability of a newly-created relation. First, it accumulated the total size of all forks in a variable of type BlockNumber (uint32).

pgsql: Avoid integer overflow while testing wal_skip_threshold conditio

2025-01-30 Thread Tom Lane
Avoid integer overflow while testing wal_skip_threshold condition. smgrDoPendingSyncs had two distinct risks of integer overflow while deciding which way to ensure durability of a newly-created relation. First, it accumulated the total size of all forks in a variable of type BlockNumber (uint32).