pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Teach autoprewarm to use the dynamic shared memory registry.
Date: Fri, 19 Jan 2024 20:44:38 +0000
Message-ID: <E1rQvjC-002Chd-Cd@gemulon.postgresql.org> (raw)

Teach autoprewarm to use the dynamic shared memory registry.

Besides showcasing the DSM registry, this prevents pg_prewarm from
stealing from the main shared memory segment's extra buffer space
when autoprewarm_start_worker() and autoprewarm_dump_now() are used
without loading the module via shared_preload_libraries.

Suggested-by: Michael Paquier
Reviewed-by: Bharath Rupireddy
Discussion: https://postgr.es/m/20231205034647.GA2705267%40nathanxps13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/abb0b4fc03fcf5a0ca786bd88c357bf9213aa6e1

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c | 46 +++++++++++++---------------------------
1 file changed, 15 insertions(+), 31 deletions(-)



Message-ID: <E1rQvjC-002Chd-Cd@gemulon.postgresql.org>
Permalink:  ../E1rQvjC-002Chd-Cd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rQvjC-002Chd-Cd@gemulon.postgresql.org

 · 

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: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Teach autoprewarm to use the dynamic shared memory registry.
  In-Reply-To: <E1rQvjC-002Chd-Cd@gemulon.postgresql.org>

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

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