mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
79ccd7cbd5
Periodically while the server is running, and at shutdown, write out a list of blocks in shared buffers. When the server reaches consistency -- unfortunatey, we can't do it before that point without breaking things -- reload those blocks into any still-unused shared buffers. Mithun Cy and Robert Haas, reviewed and tested by Beena Emerson, Amit Kapila, Jim Nasby, and Rafia Sabih. Discussion: http://postgr.es/m/CAD__OugubOs1Vy7kgF6xTjmEqTR4CrGAv8w+ZbaY_+MZeitukw@mail.gmail.com
15 lines
458 B
SQL
15 lines
458 B
SQL
/* contrib/pg_prewarm/pg_prewarm--1.1--1.2.sql */
|
|
|
|
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
|
|
\echo Use "ALTER EXTENSION pg_prewarm UPDATE TO '1.2'" to load this file. \quit
|
|
|
|
CREATE FUNCTION autoprewarm_start_worker()
|
|
RETURNS VOID STRICT
|
|
AS 'MODULE_PATHNAME', 'autoprewarm_start_worker'
|
|
LANGUAGE C;
|
|
|
|
CREATE FUNCTION autoprewarm_dump_now()
|
|
RETURNS pg_catalog.int8 STRICT
|
|
AS 'MODULE_PATHNAME', 'autoprewarm_dump_now'
|
|
LANGUAGE C;
|