forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0bf6246

Amit Kapila
Fix issues in binary_upgrade_logical_slot_has_caught_up().
The commit29d0a77 labelled binary_upgrade_logical_slot_has_caught_up()as a non-strict function to allow providing a better error message to callersin case the passed slot_name is NULL. On further discussion, it seems thatit is not helpful to have a different error message for NULL input in thisfunction, so this patch marks the function as strict.This patch also removes the explicit permission check to use replicationslots as this function is invoked only by superusers and instead adds anAssert.Reported-by: Masahiko SawadaAuthor: Hayato KurodaReviewed-by: Vignesh CDiscussion:https://postgr.es/m/CAD21AoDSyiBKkMXBxN_gUayZZUCOgyHnG8Ge8rcPXNP3Tf6B4g@mail.gmail.com1 parentc426f7c commit0bf6246
File tree
3 files changed
+8
-9
lines changed- src
- backend/utils/adt
- include/catalog
3 files changed
+8
-9
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 |
| - | |
288 |
| - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11392 | 11392 |
| |
11393 | 11393 |
| |
11394 | 11394 |
| |
11395 |
| - | |
11396 |
| - | |
11397 |
| - | |
| 11395 | + | |
| 11396 | + | |
11398 | 11397 |
| |
11399 | 11398 |
| |
11400 | 11399 |
| |
|
0 commit comments
Comments
(0)