timescaledb/sql/updates/reverse-dev.sql
Dmitry Simonenko f12a361ef7 Add timeout argument to the ping_data_node()
This PR introduces a timeout argument and a new logic to the
timescale_internal.ping_data_node() function which allows
to handle io timeouts for nodes being unresponsive.

Fix #5312
2023-02-21 19:52:03 +02:00

11 lines
410 B
SQL

GRANT ALL ON _timescaledb_internal.job_errors TO PUBLIC;
ALTER EXTENSION timescaledb DROP VIEW timescaledb_information.job_errors;
DROP VIEW timescaledb_information.job_errors;
DROP FUNCTION _timescaledb_internal.ping_data_node(NAME, INTERVAL);
CREATE OR REPLACE FUNCTION _timescaledb_internal.ping_data_node(node_name NAME) RETURNS BOOLEAN
AS '@MODULE_PATHNAME@', 'ts_data_node_ping' LANGUAGE C VOLATILE;