pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Disable synchronous commits in pg_rewind. 3+ messages / 1 participants [nested] [flat]
* pgsql: Disable synchronous commits in pg_rewind. @ 2016-10-06 10:35 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 3+ messages in thread From: Heikki Linnakangas @ 2016-10-06 10:35 UTC (permalink / raw) To: 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.GA12247@nighthawk.caipicrew.dd-dns.de> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/d7eb76b908a3aac68c23c7d3553c65c80e92b823 Modified Files -------------- src/bin/pg_rewind/libpq_fetch.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Disable synchronous commits in pg_rewind. @ 2016-10-06 10:35 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 3+ messages in thread From: Heikki Linnakangas @ 2016-10-06 10:35 UTC (permalink / raw) To: 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.GA12247@nighthawk.caipicrew.dd-dns.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(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Disable synchronous commits in pg_rewind. @ 2016-10-06 10:35 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 3+ messages in thread From: Heikki Linnakangas @ 2016-10-06 10:35 UTC (permalink / raw) To: 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.GA12247@nighthawk.caipicrew.dd-dns.de> Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/69da71254b4293b6f817486eaed2df17f8725743 Modified Files -------------- src/bin/pg_rewind/libpq_fetch.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-10-06 10:35 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-10-06 10:35 pgsql: Disable synchronous commits in pg_rewind. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-06 10:35 pgsql: Disable synchronous commits in pg_rewind. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-06 10:35 pgsql: Disable synchronous commits in pg_rewind. Heikki Linnakangas <heikki.linnakangas@iki.fi>
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