pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jesper Pedersen <jesper.pedersen@redhat.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_receivelwal vs synchronous
Date: Thu, 27 Jun 2019 08:47:02 -0400
Message-ID: <5ad8cb19-de33-287c-fd0a-dd822da81e65@redhat.com> (raw)
In-Reply-To: <CABUevEwgi7d1y8qcsRYCvASUY7ny+duW+-w_u_5uQFcb8eSfmA@mail.gmail.com>
References: <94c4d130-8efa-35c4-ba86-789f2cd9acfa@redhat.com>
	<CABUevEwgi7d1y8qcsRYCvASUY7ny+duW+-w_u_5uQFcb8eSfmA@mail.gmail.com>

Hi Magnus,

On 6/27/19 8:37 AM, Magnus Hagander wrote:
>> What am I missing here ?
>>
> 
> I believe your problem is remote_apply.
> 
> pg_receivewal never *applies* any WAL, so it just updates the write and
> flush locations. Notice how the replay_lsn remains NULL.
> 
> So you need synchronous_commit to be 'on' or 'remote_write', not
> 'remote_apply'.
> 

Yeah, remote_write works :)

I'll a patch for the pg_receivewal documentation to make this more clear.

Thanks !

Best regards,
  Jesper





view thread (3+ messages)

Message-ID: <5ad8cb19-de33-287c-fd0a-dd822da81e65@redhat.com>
Permalink:  ../5ad8cb19-de33-287c-fd0a-dd822da81e65@redhat.com/
Also on:    postgresql.org/message-id/5ad8cb19-de33-287c-fd0a-dd822da81e65@redhat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jesper.pedersen@redhat.com, magnus@hagander.net
  Subject: Re: pg_receivelwal vs synchronous
  In-Reply-To: <5ad8cb19-de33-287c-fd0a-dd822da81e65@redhat.com>
  References: <94c4d130-8efa-35c4-ba86-789f2cd9acfa@redhat.com> <CABUevEwgi7d1y8qcsRYCvASUY7ny+duW+-w_u_5uQFcb8eSfmA@mail.gmail.com> <5ad8cb19-de33-287c-fd0a-dd822da81e65@redhat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox