diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-08-21 14:43:00 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-08-21 14:17:39 -0400 |
commit | 79ccd7cbd5ca44bee0191d12e9e65abf702899e7 (patch) | |
tree | 61870b5ef1e67989c29ab070c11378e8522330c9 /src/include/storage/buf_internals.h | |
parent | 66ed3829df959adb47f71d7c903ac59f0670f3e1 (diff) | |
download | postgresql-79ccd7cbd5ca44bee0191d12e9e65abf702899e7.tar.gz postgresql-79ccd7cbd5ca44bee0191d12e9e65abf702899e7.zip |
pg_prewarm: Add automatic prewarm feature.
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
Diffstat (limited to 'src/include/storage/buf_internals.h')
-rw-r--r-- | src/include/storage/buf_internals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index b768b6fc962..300adfcf9e8 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -317,6 +317,7 @@ extern void StrategyNotifyBgWriter(int bgwprocno); extern Size StrategyShmemSize(void); extern void StrategyInitialize(bool init); +extern bool have_free_buffer(void); /* buf_table.c */ extern Size BufTableShmemSize(int size); |