Re: pgsql: Partially deduplicate interrupt handling for background processe

2019-12-18 Thread Robert Haas
On Wed, Dec 18, 2019 at 3:17 AM Thomas Munro wrote: > On Wed, Dec 18, 2019 at 7:18 AM Robert Haas wrote: > > src/backend/postmaster/checkpointer.c | 60 ++-- > > -#include > > I think we still need this for time() (looking at warnings on Windows > BF members). OK, I put it back

Re: pgsql: Partially deduplicate interrupt handling for background processe

2019-12-18 Thread Thomas Munro
On Wed, Dec 18, 2019 at 7:18 AM Robert Haas wrote: > src/backend/postmaster/checkpointer.c | 60 ++-- -#include I think we still need this for time() (looking at warnings on Windows BF members).

pgsql: Partially deduplicate interrupt handling for background processe

2019-12-17 Thread Robert Haas
Partially deduplicate interrupt handling for background processes. Where possible, share signal handler code and main loop interrupt checking. This saves quite a bit of code and should simplify maintenance, too. This commit intends not to change the way anything works, even though that might allo