Re: pgsql: Move interrupt-handling code into subroutines.

2019-12-17 Thread Robert Haas
On Tue, Dec 17, 2019 at 1:43 PM Andrew Gierth wrote: > > "Robert" == Robert Haas writes: > > Robert> Move interrupt-handling code into subroutines. > > This is eliciting compiler warnings from gcc, which apparently doesn't > count "static void foo();" as being a prototype (quite reasonably,

Re: pgsql: Move interrupt-handling code into subroutines.

2019-12-17 Thread Andrew Gierth
> "Robert" == Robert Haas writes: Robert> Move interrupt-handling code into subroutines. This is eliciting compiler warnings from gcc, which apparently doesn't count "static void foo();" as being a prototype (quite reasonably, since it's not). Needs this fix (in autovacuum.c and checkpoint

pgsql: Move interrupt-handling code into subroutines.

2019-12-17 Thread Robert Haas
Move interrupt-handling code into subroutines. Some auxiliary processes, as well as the autovacuum launcher, have interrupt handling code directly in their main loops. Try to abstract things a little better by moving it into separate functions. This doesn't make any functional difference, and lea