timescaledb/tsl/test/sql/remote_connection_cache.sql
Ruslan Fomkin 6aec69f9c4 Rename exported test functions to follow convention
Rename exported functions used in distributed tests to follow the
convention of ts_ prefix, which was recently forced in non-distributed
tests.
2020-05-27 17:31:09 +02:00

29 lines
977 B
SQL

-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
CREATE FUNCTION _timescaledb_internal.test_remote_connection_cache()
RETURNS void
AS :TSL_MODULE_PATHNAME, 'ts_test_remote_connection_cache'
LANGUAGE C STRICT;
CREATE FUNCTION _timescaledb_internal.test_alter_data_node(node_name NAME)
RETURNS BOOL
AS :TSL_MODULE_PATHNAME, 'ts_test_alter_data_node'
LANGUAGE C STRICT;
DO $d$
BEGIN
EXECUTE $$SELECT add_data_node('loopback_1', host => 'localhost',
database => 'loopback_1',
port => current_setting('port')::int)$$;
EXECUTE $$SELECT add_data_node('loopback_2', host => 'localhost',
database => 'loopback_2',
port => current_setting('port')::int)$$;
END;
$d$;
SELECT _timescaledb_internal.test_remote_connection_cache();