New trigger option of pg_standby - Mailing list pgsql-hackers

From Fujii Masao
Subject New trigger option of pg_standby
Date
Msg-id 3f0b79eb0903242329j12865d55s348f5c873a956e71@mail.gmail.com
Whole thread Raw
Responses Re: New trigger option of pg_standby  (Guillaume Smet <guillaume.smet@gmail.com>)
List pgsql-hackers
Hi,

Current pg_standby is dangerous because the presence of the trigger
file causes recovery to end whether or not the next WAL file is available.
So, some *available* transactions may be lost at failover. Such danger
will become high if the standby server has not caught up with the primary.

Attached patch fixes the above problem by adding a new trigger option
to pg_standby; the presence of this new trigger file causes recovery to
end after replaying all the available WAL files. Specifically, pg_standby
acts like 'cp' or 'ln' command while this new trigger file exists.

I've not changed any existing features, so backward-compatibility is
maintained.

Thought?

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

Attachment

pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: improving concurrent transactin commit rate
Next
From: Guillaume Smet
Date:
Subject: Re: New trigger option of pg_standby