Re: [HACKERS] SIGALRM in autovacuum.c

2006-01-01 Thread Tom Lane
Bruce Momjian writes: > Is this correct in autovacuum.c? > pqsignal(SIGALRM, handle_sig_alarm); > Should it be SIG_IGN? Absolutely not. autovacuum takes locks just like a backend and has to be able to handle deadlock timeout checks. regards, tom lane -

Re: [HACKERS] SIGALRM in autovacuum.c

2006-01-01 Thread Bruce Momjian
Bruce Momjian wrote: > Is this correct in autovacuum.c? > > pqsignal(SIGALRM, handle_sig_alarm); > > Should it be SIG_IGN? I don't see autovacuum using a timer or a reason > it is calling the backend's timer routine. FYI, the comment above this says: * Set up signal handlers. W