Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group