forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit10ffe0f
committed
Fix crash in WAL sender when starting physical replication
Since database connections can be used with WAL senders in 9.4, it ispossible to use physical replication. This commit fixes a crash whenstarting physical replication with a WAL sender using a databaseconnection, caused by the refactoring done in850196b.There have been discussions about forbidding the use of physicalreplication in a database connection, but this is left for later,taking care only of the crash new to 13.While on it, add a test to check for a failure when attempting logicalreplication if the WAL sender does not have a database connection. Thispart is extracted from a larger patch by Kyotaro Horiguchi.Reported-by: Vladimir SitnikovAuthor: Michael Paquier, Kyotaro HoriguchiReviewed-by: Kyotaro Horiguchi, Álvaro HerreraDiscussion:https://postgr.es/m/CAB=Je-GOWMj1PTPkeUhjqQp-4W3=nW-pXe2Hjax6rJFffB5_Aw@mail.gmail.comBackpatch-through: 131 parent9b5f85f commit10ffe0f
File tree
4 files changed
+31
-26
lines changed- src
- backend
- access/transam
- replication
- include/access
- test/recovery/t
4 files changed
+31
-26
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
| 48 | + | |
47 | 49 |
| |
48 | 50 |
| |
49 | 51 |
| |
| |||
210 | 212 |
| |
211 | 213 |
| |
212 | 214 |
| |
213 |
| - | |
| 215 | + | |
214 | 216 |
| |
215 | 217 |
| |
216 | 218 |
| |
|
Lines changed: 18 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
137 | 136 |
| |
138 |
| - | |
139 |
| - | |
| 137 | + | |
140 | 138 |
| |
141 | 139 |
| |
142 | 140 |
| |
| |||
285 | 283 |
| |
286 | 284 |
| |
287 | 285 |
| |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 | 286 |
| |
303 | 287 |
| |
304 | 288 |
| |
| |||
594 | 578 |
| |
595 | 579 |
| |
596 | 580 |
| |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
597 | 593 |
| |
598 | 594 |
| |
599 | 595 |
| |
| |||
1643 | 1639 |
| |
1644 | 1640 |
| |
1645 | 1641 |
| |
| 1642 | + | |
| 1643 | + | |
1646 | 1644 |
| |
1647 | 1645 |
| |
1648 | 1646 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
265 |
| - | |
266 |
| - | |
267 |
| - | |
268 |
| - | |
269 | 265 |
| |
270 | 266 |
| |
271 | 267 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 |
| |
40 | 49 |
| |
41 | 50 |
| |
|
0 commit comments
Comments
(0)