forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4397abd
committed
Prevent use of invalidated logical slot in CreateDecodingContext()
Previously we had checks for this in multiple places. Support for logicaldecoding on standbys will add other forms of invalidation, making it worthwhile to centralize the checks.This slightly changes the error message for both the walsender and SQLinterface. Particularly the SQL interface error was inaccurate, as the "Thisslot has never previously reserved WAL" portion was unreachable.Reviewed-by: "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://postgr.es/m/20230407075009.igg7be27ha2htkbt@awork3.anarazel.de1 parent15f8203 commit4397abd
File tree
3 files changed
+16
-20
lines changed- src/backend/replication
- logical
3 files changed
+16
-20
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
518 | 518 |
| |
519 | 519 |
| |
520 | 520 |
| |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
521 | 537 |
| |
522 | 538 |
| |
523 | 539 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 | 217 |
| |
231 | 218 |
| |
232 | 219 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1253 | 1253 |
| |
1254 | 1254 |
| |
1255 | 1255 |
| |
1256 |
| - | |
1257 |
| - | |
1258 |
| - | |
1259 |
| - | |
1260 |
| - | |
1261 |
| - | |
1262 |
| - | |
1263 | 1256 |
| |
1264 | 1257 |
| |
1265 | 1258 |
| |
|
0 commit comments
Comments
(0)