pgsql: Teach autoprewarm to use the dynamic shared memory registry.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Teach autoprewarm to use the dynamic shared memory registry.
Date: 2024-01-19 20:44:38
Message-ID: E1rQvjC-002Chd-Cd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-01-20 18:58:02 pgsql: Add planner support functions for range operators <@ and @>.
Previous Message Nathan Bossart 2024-01-19 20:25:27 pgsql: Introduce the dynamic shared memory registry.