- Notifications
You must be signed in to change notification settings - Fork5
Commitc314ead
committed
Add ability to reserve WAL upon slot creation via replication protocol.
Since6fcd885 it is possible to immediately reserve WAL when creating aslot via pg_create_physical_replication_slot(). Extend the replicationprotocol to allow that as well.Although, in contrast to the SQL interface, it is possible to update thereserved location via the replication interface, it is still usefulbeing able to reserve upon creation there. Otherwise the logic inReplicationSlotReserveWal() has to be repeated in slot employingclients.Author: Michael PaquierDiscussion: CAB7nPqT0Wc1W5mdYGeJ_wbutbwNN+3qgrFR64avXaQCiJMGaYA@mail.gmail.com1 parent258ee1b commitc314ead
File tree
5 files changed
+32
-3
lines changed- doc/src/sgml
- src
- backend/replication
- include/nodes
5 files changed
+32
-3
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1434 | 1434 |
| |
1435 | 1435 |
| |
1436 | 1436 |
| |
1437 |
| - | |
| 1437 | + | |
1438 | 1438 |
| |
1439 | 1439 |
| |
1440 | 1440 |
| |
| |||
1463 | 1463 |
| |
1464 | 1464 |
| |
1465 | 1465 |
| |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1466 | 1477 |
| |
1467 | 1478 |
| |
1468 | 1479 |
| |
|
Lines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| 79 | + | |
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
| |||
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
| 92 | + | |
91 | 93 |
| |
92 | 94 |
| |
93 | 95 |
| |
| |||
181 | 183 |
| |
182 | 184 |
| |
183 | 185 |
| |
184 |
| - | |
185 |
| - | |
| 186 | + | |
| 187 | + | |
186 | 188 |
| |
187 | 189 |
| |
188 | 190 |
| |
189 | 191 |
| |
190 | 192 |
| |
| 193 | + | |
191 | 194 |
| |
192 | 195 |
| |
193 | 196 |
| |
| |||
268 | 271 |
| |
269 | 272 |
| |
270 | 273 |
| |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
271 | 279 |
| |
272 | 280 |
| |
273 | 281 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| 98 | + | |
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
826 | 826 |
| |
827 | 827 |
| |
828 | 828 |
| |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
829 | 837 |
| |
830 | 838 |
| |
831 | 839 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
|
0 commit comments
Comments
(0)