Re: Synchronous archiving

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>
Cc: Laurence Rowe <l(at)lrowe(dot)co(dot)uk>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Synchronous archiving
Date: 2015-02-03 03:55:36
Message-ID: CAB7nPqSun44brBdm+Po+n90qE39Ae-EVKpNoPSFN_dycKuZy8g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 3, 2015 at 12:30 PM, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com> wrote:
> On 1/27/15 1:51 AM, Laurence Rowe wrote:
>>
>> I have a relatively small database with not many writes. However, I'm
>> keen to ensure that those writes I receive are not lost. Archiving gets
>> me most of the way there, but it is asynchronous. Is there any way to
>> archive individual WAL records without running a replica?
>
> The only reasonable way to do this that I'm aware of is to setup synchronous
> replication:
> http://www.postgresql.org/docs/devel/static/warm-standby.html#SYNCHRONOUS-REPLICATION
With the upcoming 9.5, pg_receivexlog provides an option --synchronous
to issue sync commands as soon as there is WAL information available.
I think that this would be what you are looking for, but you will need
to wait until 9.5 is out.
--
Michael

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2015-02-03 04:01:12 Re: hash function in Postgres
Previous Message Jim Nasby 2015-02-03 03:44:28 Re: partial "on-delete set null" constraint