Re: SIGALRM in autovacuum.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SIGALRM in autovacuum.c
Date: 2006-01-02 03:35:18
Message-ID: 27422.1136172918@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message elein 2006-01-02 03:36:02 Re: Why don't we allow DNS names in pg_hba.conf?
Previous Message Bruce Momjian 2006-01-02 03:34:06 Re: SIGALRM in autovacuum.c