forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd7eb76b
committed
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 workingfor some reason, pg_rewind will get stuck because it creates a temporarytable, which needs to be replicated. You could call broken replication apilot error, but pg_rewind is often used in special circumstances, whenthere are changes to the replication setup.We don't do any "real" updates, and we don't care about fsyncing orreplicating the operations on the temporary tables, so fix that bysetting synchronous_commit off.Michael Banck, Michael Paquier. Backpatch to 9.5, where pg_rewind wasintroduced.Discussion: <20161005143938.GA12247@nighthawk.caipicrew.dd-dns.de>1 parentb56fb69 commitd7eb76b
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
| |||
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
80 | 94 |
| |
81 | 95 |
| |
82 | 96 |
| |
|
0 commit comments
Comments
(0)