Re: Changed behavior in rewriteheap
Heikki Linnakangas <hlinnaka@iki.fi>
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Matthias van de Meent <boekewurm+postgres@gmail.com>, Erik Nordström <erik@timescale.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-11-22T13:26:56Z
Lists: pgsql-hackers
On 22/11/2024 15:02, Matthias van de Meent wrote: > I think I'd go with a patch like attached, where the bulk writer > registers that it started with .relsize pages in the relfork, and use > that for smgrextend() decisions. It now also records pages_written as > a separate but accurate value. Looks good to me. Eric, can you confirm that Matthias's patch fixes the problem for you? -- Heikki Linnakangas Neon (https://neon.tech)
Commits
-
Fix data loss when restarting the bulk_write facility
- 9695835538c2 17.3 landed
- ee937f0409d5 18.0 landed
-
Introduce a new smgr bulk loading facility.
- 8af256524893 17.0 cited