public inbox for [email protected]  
help / color / mirror / Atom feed
From: Heikki Linnakangas <[email protected]>
To: Matthias van de Meent <[email protected]>
To: Erik Nordström <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: Changed behavior in rewriteheap
Date: Fri, 22 Nov 2024 15:26:56 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAEze2Wg6kz3AypbuvMbx5j5RgasvB6+ykgzRVfrhxsR_m6cCkQ@mail.gmail.com>
References: <CACAa4VJ+QY4pY7M0ECq29uGkrOygikYtao1UG9yCDFosxaps9g@mail.gmail.com>
	<CAEze2Wj3t_N_i=vNm3yHB0TLtgsieYx0_uSMqLqN2Y8qAAbJkw@mail.gmail.com>
	<CACAa4VLT1GB+BR8kgrFbF6GEUNbAAWEb+6NpMUPzYSAA-PL1vg@mail.gmail.com>
	<CAEze2Wg6kz3AypbuvMbx5j5RgasvB6+ykgzRVfrhxsR_m6cCkQ@mail.gmail.com>

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)







view thread (3+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Changed behavior in rewriteheap
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox