Add interrupt checks to contrib/pg_prewarm.
authorAndres Freund <andres@anarazel.de>
Wed, 12 Nov 2014 17:52:49 +0000 (18:52 +0100)
committerAndres Freund <andres@anarazel.de>
Wed, 12 Nov 2014 17:52:49 +0000 (18:52 +0100)
commitbd4ae0f396b36955c92f26c0058e7dc0452db817
tree5ad37a0497d23572dc23e4b5a6afb9aa3ae1480b
parent28245b8424e29808f4f714482077a762cab0c5c5
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.
contrib/pg_prewarm/pg_prewarm.c