Rafa de la Torre
a4a4a1dff1
Honor n_samples param
2019-11-13 12:13:42 +01:00
Rafa de la Torre
0362825b8c
Encapsulate python in __CDB_FS_TCP_Foreign_Server_Latency
...
Instead of having a generic function, merge
__CDB_FS_TCP_Network_Latency and __CDB_FS_Foreign_Server_Host_PG into
one function so that it can only "ping" federated servers.
2019-11-13 11:44:24 +01:00
Rafa de la Torre
18f9f79fe8
Rename key to server_latency_ms to be self-explanatory
2019-11-12 15:08:26 +01:00
Rafa de la Torre
a032cc08e0
Measure latency as the avg of n_samples
2019-11-12 15:01:56 +01:00
Rafa de la Torre
d3ae4b808c
Remove default port 5432 in generic function
2019-11-12 13:27:42 +01:00
Rafa de la Torre
26f91001ee
Retrieve port from the catalog
2019-11-12 13:06:14 +01:00
Rafa de la Torre
43b242e610
Retrieve host from the catalog
2019-11-12 13:02:04 +01:00
Rafa de la Torre
8c7a75dd0c
Implement __CDB_FS_TCP_Network_Latency
2019-11-12 12:42:28 +01:00
Rafa de la Torre
dbed2d1ede
More scaffolding for latency in diagnostics
2019-11-12 12:41:37 +01:00
Rafa de la Torre
1c27443ff4
Stub remote server latency (WIP)
2019-11-12 12:41:37 +01:00
Rafa de la Torre
0ad7cd485d
Simplify function with aggregate
2019-11-11 21:34:51 +01:00
Rafa de la Torre
6e9ee296c5
Remove useless commented code
2019-11-11 20:48:14 +01:00
Rafa de la Torre
d87d27d7e5
Use pg_options_to_table instead of manual parsing
2019-11-11 20:42:00 +01:00
Rafa de la Torre
5c9f6964a3
Fix typo: hardcoded loopback server
2019-11-11 18:46:07 +01:00
Rafa de la Torre
d76e3ccc3e
Add server options to diagnostics
2019-11-11 16:02:04 +01:00
Rafa de la Torre
6700d24232
Refactor: extract __CDB_FS_Import_If_Not_Exists
2019-11-08 20:16:26 +01:00
Rafa de la Torre
511e24a40e
Remove unused var role_name
2019-11-08 20:05:08 +01:00
Rafa de la Torre
80f01d4a51
Implement retrieval of remote postgis version
2019-11-08 20:02:51 +01:00
Rafa de la Torre
d4bc69cd3c
Return postgis version in diagnostics info (WIP)
2019-11-08 19:49:16 +01:00
Rafa de la Torre
8730292097
Function to retrieve remote PG server ver
2019-11-08 19:20:08 +01:00
Rafa de la Torre
40a2ba9569
Stub function to add server_version to diagnostics
2019-11-08 18:09:22 +01:00
Rafa de la Torre
35b2b7e589
Check the server is of type PG and return jsonb
2019-11-08 18:06:35 +01:00
Rafa de la Torre
4100b66f3b
Scaffolding for diagnostic function(s)
2019-11-08 17:11:04 +01:00