Arrange for SIGINT in autovacuum workers to cancel the current table and
Alvaro Herrera <alvherre@alvh.no-ip.org>
Arrange for SIGINT in autovacuum workers to cancel the current table and continue with the schedule. Change current uses of SIGINT to abort a worker into SIGTERM, which keeps the old behaviour of terminating the process. Patch from ITAGAKI Takahiro, with some editorializing of my own.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/autovacuum.c | modified | +49 −7 |
| src/backend/postmaster/postmaster.c | modified | +2 −2 |
| src/backend/storage/ipc/procarray.c | modified | +2 −2 |
| src/backend/tcop/postgres.c | modified | +10 −4 |