pgsql: Disable synchronous commits in pg_rewind.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Disable synchronous commits in pg_rewind.
Date: 2016-10-06 10:35:59
Message-ID: E1bs61v-0003iZ-Nk@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Disable synchronous commits in pg_rewind.

If you point pg_rewind to a server that is using synchronous replication,
with "pg_rewind --source-server=...", and the replication is not working
for some reason, pg_rewind will get stuck because it creates a temporary
table, which needs to be replicated. You could call broken replication a
pilot error, but pg_rewind is often used in special circumstances, when
there are changes to the replication setup.

We don't do any "real" updates, and we don't care about fsyncing or
replicating the operations on the temporary tables, so fix that by
setting synchronous_commit off.

Michael Banck, Michael Paquier. Backpatch to 9.5, where pg_rewind was
introduced.

Discussion: <20161005143938(dot)GA12247(at)nighthawk(dot)caipicrew(dot)dd-dns(dot)de>

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/aab809664813380b3cd6c94a2791ffddc656b1f1

Modified Files
--------------
src/bin/pg_rewind/libpq_fetch.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2016-10-07 09:25:05 pgsql: Don't share SSL_CTX between libpq connections.
Previous Message Heikki Linnakangas 2016-10-06 06:52:06 pgsql: Fix excessive memory consumption in the new sort pre-reading cod