- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitfe186bd
committed
postgres_fdw: Extend postgres_fdw_get_connections to return remote backend PID.
This commit adds a new "remote_backend_pid" output column tothe postgres_fdw_get_connections function. It returns the process ID ofthe remote backend, on the foreign server, handling the connection.This enhancement is useful for troubleshooting, monitoring, and reporting.For example, if a connection is unexpectedly closed by the foreign server,the remote backend's PID can help diagnose the cause.No extension version bump is needed, as commitc297a47 alreadyhandled it for v18~.Author: Sagar Dilip Shedge <sagar.shedge92@gmail.com>Reviewed-by: Fujii Masao <masao.fujii@gmail.com>Discussion:https://postgr.es/m/CAPhYifF25q5xUQWXETfKwhc0YVa_6+tfG9Kw4bCvCjpCWxYs2A@mail.gmail.com1 parent15a79c7 commitfe186bd
File tree
5 files changed
+76
-32
lines changed- contrib/postgres_fdw
- expected
- sql
- doc/src/sgml
5 files changed
+76
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2111 | 2111 | | |
2112 | 2112 | | |
2113 | 2113 | | |
2114 | | - | |
2115 | | - | |
| 2114 | + | |
| 2115 | + | |
2116 | 2116 | | |
2117 | 2117 | | |
2118 | 2118 | | |
| |||
2128 | 2128 | | |
2129 | 2129 | | |
2130 | 2130 | | |
2131 | | - | |
| 2131 | + | |
2132 | 2132 | | |
2133 | 2133 | | |
2134 | 2134 | | |
2135 | 2135 | | |
2136 | 2136 | | |
2137 | 2137 | | |
| 2138 | + | |
| 2139 | + | |
2138 | 2140 | | |
2139 | 2141 | | |
2140 | 2142 | | |
| |||
2273 | 2275 | | |
2274 | 2276 | | |
2275 | 2277 | | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
2276 | 2281 | | |
2277 | 2282 | | |
2278 | 2283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10589 | 10589 | | |
10590 | 10590 | | |
10591 | 10591 | | |
10592 | | - | |
10593 | | - | |
10594 | | - | |
10595 | | - | |
10596 | | - | |
10597 | | - | |
10598 | | - | |
| 10592 | + | |
| 10593 | + | |
| 10594 | + | |
| 10595 | + | |
| 10596 | + | |
| 10597 | + | |
| 10598 | + | |
| 10599 | + | |
| 10600 | + | |
| 10601 | + | |
| 10602 | + | |
| 10603 | + | |
10599 | 10604 | | |
10600 | 10605 | | |
10601 | 10606 | | |
| |||
12436 | 12441 | | |
12437 | 12442 | | |
12438 | 12443 | | |
12439 | | - | |
| 12444 | + | |
| 12445 | + | |
| 12446 | + | |
| 12447 | + | |
| 12448 | + | |
| 12449 | + | |
| 12450 | + | |
12440 | 12451 | | |
12441 | | - | |
12442 | | - | |
12443 | | - | |
| 12452 | + | |
| 12453 | + | |
| 12454 | + | |
12444 | 12455 | | |
12445 | 12456 | | |
12446 | 12457 | | |
12447 | 12458 | | |
12448 | | - | |
| 12459 | + | |
| 12460 | + | |
12449 | 12461 | | |
12450 | 12462 | | |
12451 | 12463 | | |
12452 | 12464 | | |
12453 | | - | |
| 12465 | + | |
| 12466 | + | |
| 12467 | + | |
12454 | 12468 | | |
12455 | | - | |
12456 | | - | |
12457 | | - | |
| 12469 | + | |
| 12470 | + | |
| 12471 | + | |
12458 | 12472 | | |
12459 | 12473 | | |
12460 | 12474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3410 | 3410 | | |
3411 | 3411 | | |
3412 | 3412 | | |
3413 | | - | |
3414 | | - | |
3415 | | - | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
3416 | 3421 | | |
3417 | 3422 | | |
3418 | 3423 | | |
| |||
4288 | 4293 | | |
4289 | 4294 | | |
4290 | 4295 | | |
4291 | | - | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
4292 | 4303 | | |
4293 | 4304 | | |
4294 | 4305 | | |
4295 | 4306 | | |
4296 | | - | |
| 4307 | + | |
| 4308 | + | |
4297 | 4309 | | |
4298 | 4310 | | |
4299 | 4311 | | |
4300 | 4312 | | |
4301 | | - | |
| 4313 | + | |
| 4314 | + | |
| 4315 | + | |
4302 | 4316 | | |
4303 | 4317 | | |
4304 | 4318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
857 | | - | |
| 857 | + | |
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
| |||
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
954 | 965 | | |
955 | 966 | | |
956 | 967 | | |
| |||
0 commit comments
Comments
(0)