Re: Archiver not picking up changes to archive_command

From: bricklen <bricklen(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Archiver not picking up changes to archive_command
Date: 2010-05-11 01:44:09
Message-ID: AANLkTinHuEBR1GuARRcJk-HHC-dnhobAILP_Q2c3QaB4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Mon, May 10, 2010 at 5:50 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> A look at the code shows that the archiver only notices SIGHUP once
> per outer loop, so the change would only take effect once you catch up,
> which is not going to help much in this case.  Possibly we should change
> it to check for SIGHUP after each archive_command execution.
>
> If you kill -9 the archiver process, the postmaster will just start
> a new one, but realize that that would result in two concurrent
> rsync's.  It might work ok to kill -9 the archiver and the current
> rsync in the same command.
>
>                        regards, tom lane
>

I think I'll just wait it out, then sighup.

Thanks for looking into this.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bricklen 2010-05-11 01:45:38 Re: Archiver not picking up changes to archive_command
Previous Message Scott Marlowe 2010-05-11 01:23:51 Re: peer-to-peer replication with Postgres

Browse pgsql-hackers by date

  From Date Subject
Next Message bricklen 2010-05-11 01:45:38 Re: Archiver not picking up changes to archive_command
Previous Message Tom Lane 2010-05-11 01:13:18 Make archiver check for SIGHUP more often?