Teach autoprewarm to use the dynamic shared memory registry.
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_prewarm/autoprewarm.c | modified | +15 −31 |
Discussion
- introduce dynamic shared memory registry 51 messages · 2023-12-05 → 2024-01-23