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

Re: SIGALRM in autovacuum.c

From: Bruce Momjian <pgman(at)candle(dot)pha(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:34:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
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.  We operate on databases much like a regular
     * backend, so we use the same signal handling.  See equivalent code in
     * tcop/postgres.c.

but can you have autovacuum running as a regular backend?  I didn't
think so.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2006-01-02 03:35:18
Subject: Re: SIGALRM in autovacuum.c
Previous:From: Bruce MomjianDate: 2006-01-02 03:32:21
Subject: SIGALRM in autovacuum.c

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