Re: PostgreSQL 9.3 synchronous replication - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: PostgreSQL 9.3 synchronous replication
Date
Msg-id 20150122041546.GA27757@momjian.us
Whole thread Raw
In response to Re: PostgreSQL 9.3 synchronous replication  (Matheus de Oliveira <matioli.matheus@gmail.com>)
List pgsql-admin
On Wed, Jan 21, 2015 at 04:21:26PM -0200, Matheus de Oliveira wrote:
>
> On Wed, Jan 21, 2015 at 1:21 PM, Sergey Arlashin <sergeyarl.maillist@gmail.com>
> wrote:
>
>     Yes, I understand this. But I was wondering whether it is possible to
>     somehow force this procedure. Or wait until xlog is applied on slave and
>      only then consider the transaction committed. 
>
>
> You'd have to do it somehow in your application. AFAICT, PostgreSQL does not
> provide any way to that in current versions (might be done in future releases).

The problem with forcing the WAL to be replayed is that it might cause
many existing transactions to be canceled due to their snapshots
becoming invalid.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Back to my pg_upgrade stoppage problem
Next
From: Bruce Momjian
Date:
Subject: Re: pg_basebackup bug: base backup is double the size of the database