Re: pg_ctl failover Re: Latches, signals, and waiting - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: pg_ctl failover Re: Latches, signals, and waiting
Date
Msg-id AANLkTikdThxO=Q9zvut5TOMGAYAtGOr2ce-UwdnLFpc2@mail.gmail.com
Whole thread Raw
In response to Re: pg_ctl failover Re: Latches, signals, and waiting  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
List pgsql-hackers
On Mon, Jan 31, 2011 at 12:31 PM, Itagaki Takahiro
<itagaki.takahiro@gmail.com> wrote:
> The C function needs to create a trigger file in $PGDATA/promote
> before sending signals, no?

No. At least in the current patch, just receipt of SIGUSR2 causes the
startup process to end a recovery. The startup process doesn't check
the existence of $PGDATA/promote, though postmaster does.

>  system("pg_ctl promote") seems
> the easiest way if you use an external module.

Yeah, that's true.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Re: Extensions support for pg_dump, patch v27
Next
From: Hitoshi Harada
Date:
Subject: Re: Add ENCODING option to COPY