From 19c6de2096fbb63395055d8f1b331eba68f70944 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 13 Nov 2019 14:52:24 +0100 Subject: [PATCH] Comment out suspected line This may be causing the error ERROR: could not compile PL/Python function "__cdb_fs_tcp_foreign_server_latency" DETAIL: SyntaxError: invalid syntax (, line 26) when testing in PG12 + plpythonu3 --- scripts-available/CDB_FederatedServerDiagnostics.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts-available/CDB_FederatedServerDiagnostics.sql b/scripts-available/CDB_FederatedServerDiagnostics.sql index 05aac38..cfa845e 100644 --- a/scripts-available/CDB_FederatedServerDiagnostics.sql +++ b/scripts-available/CDB_FederatedServerDiagnostics.sql @@ -159,7 +159,7 @@ AS $$ t_stop = timer() s.shutdown(socket.SHUT_RD) except (socket.timeout, OSError, socket.error), ex: - plpy.warning('could not connect to server %s:%d, %s' % (host, port, str(ex))) + #-- TODO uncomment & fix: plpy.warning('could not connect to server %s:%d, %s' % (host, port, str(ex))) n_errors += 1 finally: s.close()