From: Kevin Grittner <kgrittn@ymail.com>
To: Sékine Coulibaly <scoulibaly@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication
Date: Wed, 25 Mar 2015 15:41:10 +0000 (UTC)
Message-ID: <1746945482.1336595.1427298070295.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <CAD8n-FoJ1q-OiFoYdJSoNMqbLOtrBz2Kx6dY7oJgK1WJgAC=kg@mail.gmail.com>
References: <CAD8n-FoJ1q-OiFoYdJSoNMqbLOtrBz2Kx6dY7oJgK1WJgAC=kg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Sékine Coulibaly <scoulibaly@gmail.com> wrote:
> I indeed want the security brought by synchronous replication.
> Having a commit no to return as long as the replica is not
> up-and-streaming is what I expect and perfectly fits my needs. It
> is perfectly right in my use case for the master to wait for the
> replica as long as necessary. Asynchronous replication is
> definitely not what I want.
>
> My concern here is that, although the slave is back, the pending
> commit is not performed on the master side.
I apologize for misunderstanding what you were experiencing.
> I'd expect all ongoing and blocking commits to be unblocked as
> soon as the slave pops in.
Indeed they should.
> Since the master and slave are synchronous after the slave is
> back, what's the point in holding a transaction forever in the
> master's backend ?
I know that a number of bugs for this sort of edge condition have
been fixed since 9.2.4 was release (on 2013-04-04). I strongly
recommend that you apply the latest bug-fix roll-up for the 9.2
branch, which is currently 9.2.10.
http://www.postgresql.org/support/versioning/
If you still see such behavior with the most recently released bug
fixes, please post again, attaching the configuration files and
showing log entries (from both clusters) from around the time the
slave is brought up.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: kgrittn@ymail.com, scoulibaly@gmail.com
Subject: Re: "no-slave yet" early CREATE TABLE transaction gets blocked when synchronous replication
In-Reply-To: <1746945482.1336595.1427298070295.JavaMail.yahoo@mail.yahoo.com>
References: <CAD8n-FoJ1q-OiFoYdJSoNMqbLOtrBz2Kx6dY7oJgK1WJgAC=kg@mail.gmail.com> <1746945482.1336595.1427298070295.JavaMail.yahoo@mail.yahoo.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