Re: pg_prewarm really needs some CHECK_FOR_INTERRUPTS

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_prewarm really needs some CHECK_FOR_INTERRUPTS
Date: 2014-11-12 20:29:35
Message-ID: 20141112202935.GF13473@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2014-11-11 12:17:11 +0100, Andres Freund wrote:
> pg_prewarm() currently can't be cannot be interrupted - which seems odd
> given that it's intended to read large amounts of data from disk. A
> rather slow process.
>
> Unless somebody protests I'm going to add a check to the top of each of
> the three loops.

Pushed to master and 9.4.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirk Roybal 2014-11-12 20:48:09 Error building the EnterpriseDB mysql_fdw on OSX
Previous Message Robert Haas 2014-11-12 19:16:40 Re: group locking: incomplete patch, just for discussion