Commit b1be307
committed
postgres_fdw: Add option to control whether to keep connections open.
This commit adds a new option keep_connections that controls
whether postgres_fdw keeps the connections to the foreign server open
so that the subsequent queries can re-use them. This option can only be
specified for a foreign server. The default is on. If set to off,
all connections to the foreign server will be discarded
at the end of transaction. Closed connections will be re-established
when they are necessary by future queries using a foreign table.
This option is useful, for example, when users want to prevent
the connections from eating up the foreign servers connections
capacity.
Author: Bharath Rupireddy
Reviewed-by: Alexey Kondratov, Vignesh C, Fujii Masao
Discussion: https://postgr.es/m/CALj2ACVvrp5=AVp2PupEm+nAC8S4buqR3fJMmaCoc7ftT0aD2A@mail.gmail.com1 parent 9c5f67f commit b1be307
File tree
5 files changed
+101
-9
lines changed- contrib/postgres_fdw
- expected
- sql
- doc/src/sgml
5 files changed
+101
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
| 291 | + | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| |||
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
307 | 330 | | |
308 | 331 | | |
309 | 332 | | |
| |||
970 | 993 | | |
971 | 994 | | |
972 | 995 | | |
973 | | - | |
974 | | - | |
975 | | - | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
976 | 1000 | | |
977 | 1001 | | |
978 | 1002 | | |
979 | 1003 | | |
980 | | - | |
| 1004 | + | |
| 1005 | + | |
981 | 1006 | | |
982 | 1007 | | |
983 | 1008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8913 | 8913 | | |
8914 | 8914 | | |
8915 | 8915 | | |
8916 | | - | |
| 8916 | + | |
8917 | 8917 | | |
8918 | 8918 | | |
8919 | 8919 | | |
| |||
9249 | 9249 | | |
9250 | 9250 | | |
9251 | 9251 | | |
| 9252 | + | |
| 9253 | + | |
| 9254 | + | |
| 9255 | + | |
| 9256 | + | |
| 9257 | + | |
| 9258 | + | |
| 9259 | + | |
| 9260 | + | |
| 9261 | + | |
| 9262 | + | |
| 9263 | + | |
| 9264 | + | |
| 9265 | + | |
| 9266 | + | |
| 9267 | + | |
| 9268 | + | |
| 9269 | + | |
| 9270 | + | |
| 9271 | + | |
| 9272 | + | |
9252 | 9273 | | |
9253 | 9274 | | |
9254 | 9275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2821 | 2821 | | |
2822 | 2822 | | |
2823 | 2823 | | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
2824 | 2837 | | |
2825 | 2838 | | |
2826 | 2839 | | |
| |||
| Original 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 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
521 | 548 | | |
522 | 549 | | |
523 | 550 | | |
| |||
605 | 632 | | |
606 | 633 | | |
607 | 634 | | |
608 | | - | |
609 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
610 | 639 | | |
611 | 640 | | |
612 | 641 | | |
| |||
622 | 651 | | |
623 | 652 | | |
624 | 653 | | |
625 | | - | |
| 654 | + | |
626 | 655 | | |
| 656 | + | |
| 657 | + | |
627 | 658 | | |
628 | 659 | | |
629 | 660 | | |
| |||
0 commit comments