forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc40489e
committed
Fix logical replication slot initialization
This was broken in commit9c7d06d, which inadvertently gave thewrong value to fast_forward in one StartupDecodingContext call. Fix byflipping the value. Add a test for the obvious error, namely trying toinitialize a replication slot with an nonexistent output plugin.While at it, move the CreateDecodingContext call earlier, so that anyerrors are reported before sending the CopyBoth message.Author: Dave Cramer <davecramer@gmail.com>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CADK3HHLVkeRe1v4P02-5hj55H3_yJg3AEtpXyEY5T3wuzO2jSg@mail.gmail.com1 parent91bc213 commitc40489e
File tree
4 files changed
+18
-11
lines changed- contrib/test_decoding
- expected
- sql
- src/backend/replication
- logical
4 files changed
+18
-11
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
33 | 35 |
| |
34 | 36 |
| |
35 | 37 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
| 13 | + | |
12 | 14 |
| |
13 | 15 |
| |
14 | 16 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
315 |
| - | |
| 315 | + | |
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
|
Lines changed: 13 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1068 | 1068 |
| |
1069 | 1069 |
| |
1070 | 1070 |
| |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1071 | 1084 |
| |
1072 | 1085 |
| |
1073 | 1086 |
| |
| |||
1077 | 1090 |
| |
1078 | 1091 |
| |
1079 | 1092 |
| |
1080 |
| - | |
1081 |
| - | |
1082 |
| - | |
1083 |
| - | |
1084 |
| - | |
1085 |
| - | |
1086 |
| - | |
1087 |
| - | |
1088 |
| - | |
1089 |
| - | |
1090 | 1093 |
| |
1091 | 1094 |
| |
1092 | 1095 |
| |
|
0 commit comments
Comments
(0)