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

Amit Kapila
Enhance libpqrcv APIs to support slot synchronization.
This patch provides support for regular (non-replication) connections inlibpqrcv_connect(). This can be used to execute SQL statements on theprimary server without starting a walsender.A new API libpqrcv_get_dbname_from_conninfo() is also added to extract thedatabase name from the given connection-info.Note that this patch doesn't change any existing functionality but laterpatches implementing the slot synchronization will use this functionalityto connect to the primary server to fetch required slot information.Author: Shveta Malik, Hou Zhijie, Ajin CherianReviewed-by: Peter Smith, Bertrand Drouvot, Dilip Kumar, Masahiko Sawada, Nisha Moond, Kuroda Hayato, Amit KapilaDiscussion:https://postgr.es/m/514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com1 parenta17aa50 commitdafbfed
File tree
6 files changed
+114
-40
lines changed- src
- backend
- commands
- replication
- libpqwalreceiver
- logical
- include/replication
6 files changed
+114
-40
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
759 | 759 |
| |
760 | 760 |
| |
761 | 761 |
| |
762 |
| - | |
| 762 | + | |
763 | 763 |
| |
764 | 764 |
| |
765 | 765 |
| |
| |||
910 | 910 |
| |
911 | 911 |
| |
912 | 912 |
| |
913 |
| - | |
| 913 | + | |
914 | 914 |
| |
915 | 915 |
| |
916 | 916 |
| |
| |||
1537 | 1537 |
| |
1538 | 1538 |
| |
1539 | 1539 |
| |
1540 |
| - | |
| 1540 | + | |
1541 | 1541 |
| |
1542 | 1542 |
| |
1543 | 1543 |
| |
| |||
1788 | 1788 |
| |
1789 | 1789 |
| |
1790 | 1790 |
| |
1791 |
| - | |
| 1791 | + | |
1792 | 1792 |
| |
1793 | 1793 |
| |
1794 | 1794 |
| |
|
Lines changed: 90 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
| |||
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| 61 | + | |
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
| |
| |||
99 | 101 |
| |
100 | 102 |
| |
101 | 103 |
| |
| 104 | + | |
102 | 105 |
| |
103 | 106 |
| |
104 | 107 |
| |
| |||
121 | 124 |
| |
122 | 125 |
| |
123 | 126 |
| |
124 |
| - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
125 | 132 |
| |
126 | 133 |
| |
127 | 134 |
| |
| |||
132 | 139 |
| |
133 | 140 |
| |
134 | 141 |
| |
135 |
| - | |
136 |
| - | |
| 142 | + | |
| 143 | + | |
137 | 144 |
| |
138 | 145 |
| |
139 | 146 |
| |
| |||
156 | 163 |
| |
157 | 164 |
| |
158 | 165 |
| |
159 |
| - | |
160 |
| - | |
161 |
| - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
162 | 171 |
| |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
169 | 201 |
| |
| 202 | + | |
170 | 203 |
| |
171 | 204 |
| |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 | 205 |
| |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 | 206 |
| |
190 | 207 |
| |
191 | 208 |
| |
| |||
471 | 488 |
| |
472 | 489 |
| |
473 | 490 |
| |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
474 | 535 |
| |
475 | 536 |
| |
476 | 537 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1329 | 1329 |
| |
1330 | 1330 |
| |
1331 | 1331 |
| |
1332 |
| - | |
| 1332 | + | |
1333 | 1333 |
| |
1334 | 1334 |
| |
1335 | 1335 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4519 | 4519 |
| |
4520 | 4520 |
| |
4521 | 4521 |
| |
4522 |
| - | |
| 4522 | + | |
4523 | 4523 |
| |
4524 | 4524 |
| |
4525 | 4525 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
296 | 296 |
| |
297 | 297 |
| |
298 | 298 |
| |
299 |
| - | |
| 299 | + | |
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
|
Lines changed: 17 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
228 | 228 |
| |
229 | 229 |
| |
230 | 230 |
| |
231 |
| - | |
232 |
| - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
233 | 235 |
| |
234 | 236 |
| |
235 | 237 |
| |
236 | 238 |
| |
237 | 239 |
| |
238 | 240 |
| |
239 | 241 |
| |
| 242 | + | |
240 | 243 |
| |
241 | 244 |
| |
242 | 245 |
| |
| |||
279 | 282 |
| |
280 | 283 |
| |
281 | 284 |
| |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
282 | 292 |
| |
283 | 293 |
| |
284 | 294 |
| |
| |||
403 | 413 |
| |
404 | 414 |
| |
405 | 415 |
| |
| 416 | + | |
406 | 417 |
| |
407 | 418 |
| |
408 | 419 |
| |
| |||
418 | 429 |
| |
419 | 430 |
| |
420 | 431 |
| |
421 |
| - | |
422 |
| - | |
| 432 | + | |
| 433 | + | |
423 | 434 |
| |
424 | 435 |
| |
425 | 436 |
| |
| |||
428 | 439 |
| |
429 | 440 |
| |
430 | 441 |
| |
| 442 | + | |
| 443 | + | |
431 | 444 |
| |
432 | 445 |
| |
433 | 446 |
| |
|
0 commit comments
Comments
(0)