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:06
Message-ID: E1XoeVO-0001e4-2X@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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bd4ae0f396b36955c92f26c0058e7dc0452db817

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

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2014-11-12 20:27:09 pgsql: Add interrupt checks to contrib/pg_prewarm.
Previous Message Noah Misch 2014-11-12 12:36:50 pgsql: Use just one database connection in the "tablespace" test.