public inbox for [email protected]  
help / color / mirror / Atom feed
From: Michael Paquier <[email protected]>
To: Andres Freund <[email protected]>
Cc: Jeff Davis <[email protected]>
Cc: Postgres hackers <[email protected]>
Cc: Maksim.Melnikov <[email protected]>
Subject: Re: Persist injection points across server restarts
Date: Wed, 4 Jun 2025 09:15:08 +0900
Message-ID: <[email protected]> (raw)
In-Reply-To: <fifaey5hwslne4mf4j6mkecdruyzdyb72yjc36waral6w7dwpq@45ffveomfqk7>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<fifaey5hwslne4mf4j6mkecdruyzdyb72yjc36waral6w7dwpq@45ffveomfqk7>

On Tue, Jun 03, 2025 at 03:34:16PM -0400, Andres Freund wrote:
> I'm somewhat doubtful this is is the right direction. Tests that require
> injection points before consistency also can't wait for injection points using
> the SQL interface or such, so most of the stuff has to be written in C
> anyway. And if so, you also can attach to injection points in the relevant
> shared_preload_libraries entry.

Hmm.  I'm wondering about an alternate approach here: a postmaster GUC
in injection_points that can take in input a list of
name/library/function where the module would load them when
initializing.  That's a bit artistic, perhaps, still it would work
without having to worry about the flush and reload steps.
--
Michael


Attachments:

  [application/pgp-signature] signature.asc (833B, ../[email protected]/2-signature.asc)
  download

view thread (18+ messages)  latest in thread

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], [email protected]
  Subject: Re: Persist injection points across server restarts
  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