pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: pg_prewarm: Add automatic prewarm feature.
Date: Mon, 21 Aug 2017 18:42:56 +0000
Message-ID: <E1djrf6-0003Bm-0p@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/79ccd7cbd5ca44bee0191d12e9e65abf702899e7

Modified Files
--------------
contrib/file_fdw/data/list1.csv             |   2 +
contrib/file_fdw/data/list2.bad             |   2 +
contrib/file_fdw/data/list2.csv             |   2 +
contrib/pg_prewarm/Makefile                 |   4 +-
contrib/pg_prewarm/autoprewarm.c            | 924 ++++++++++++++++++++++++++++
contrib/pg_prewarm/pg_prewarm--1.1--1.2.sql |  14 +
contrib/pg_prewarm/pg_prewarm.control       |   2 +-
doc/src/sgml/pgprewarm.sgml                 |  69 ++-
src/backend/storage/buffer/freelist.c       |  17 +
src/include/storage/buf_internals.h         |   1 +
src/tools/pgindent/typedefs.list            |   2 +
11 files changed, 1035 insertions(+), 4 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1djrf6-0003Bm-0p@gemulon.postgresql.org>
Permalink:  ../E1djrf6-0003Bm-0p@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1djrf6-0003Bm-0p@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: pg_prewarm: Add automatic prewarm feature.
  In-Reply-To: <E1djrf6-0003Bm-0p@gemulon.postgresql.org>
  References: <E1djrf6-0003Bm-0p@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