pgsql: Add interrupt checks to contrib/pg_prewarm.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add interrupt checks to contrib/pg_prewarm.
Date: 2014-11-12 20:27:09
Message-ID: E1XoeVR-0001ea-7y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add interrupt checks to contrib/pg_prewarm.

Currently the extension's pg_prewarm() function didn't check
interrupts once it started "warming" data. Since individual calls can
take a long while it's important for them to be interruptible.

Backpatch to 9.4 where pg_prewarm was introduced.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/57b2e1049e7fdb0ca7882c74520e409507462eb2

Modified Files
--------------
contrib/pg_prewarm/pg_prewarm.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-11-12 20:59:17 pgsql: Explicitly support the case that a plancache's raw_parse_tree is
Previous Message Andres Freund 2014-11-12 20:27:06 pgsql: Fix several weaknesses in slot and logical replication on-disk s