mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-19 04:03:06 +08:00
The license header for SQL test files has been updated, but some tests haven't had this new header applied. This change makes sure the new header is applied to all test files.
29 lines
1016 B
SQL
29 lines
1016 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, 'tsl_test_remote_connection_cache'
|
|
LANGUAGE C STRICT;
|
|
|
|
DO $d$
|
|
BEGIN
|
|
EXECUTE $$CREATE SERVER loopback_1 FOREIGN DATA WRAPPER timescaledb_fdw
|
|
OPTIONS (dbname '$$||current_database()||$$',
|
|
port '$$||current_setting('port')||$$'
|
|
)$$;
|
|
EXECUTE $$CREATE SERVER loopback_2 FOREIGN DATA WRAPPER timescaledb_fdw
|
|
OPTIONS (dbname '$$||current_database()||$$',
|
|
port '$$||current_setting('port')||$$'
|
|
)$$;
|
|
END;
|
|
$d$;
|
|
|
|
CREATE USER MAPPING FOR CURRENT_USER SERVER loopback_1;
|
|
CREATE USER MAPPING FOR CURRENT_USER SERVER loopback_2;
|
|
|
|
SELECT _timescaledb_internal.test_remote_connection_cache();
|