Change license header to new format in SQL files

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.
This commit is contained in:
Matvey Arye 2019-01-24 16:50:50 -05:00 committed by Erik Nordström
parent 882c1f17f0
commit 3779af400d
17 changed files with 51 additions and 69 deletions

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Apache License 2.0.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Apache License, see LICENSE-APACHE -- LICENSE-APACHE for a copy of the license.
-- at the top level directory of the TimescaleDB distribution.
CREATE FUNCTION timescaledb_fdw_handler() CREATE FUNCTION timescaledb_fdw_handler()
RETURNS fdw_handler RETURNS fdw_handler
@ -16,4 +15,3 @@ LANGUAGE C STRICT;
CREATE FOREIGN DATA WRAPPER timescaledb_fdw CREATE FOREIGN DATA WRAPPER timescaledb_fdw
HANDLER timescaledb_fdw_handler HANDLER timescaledb_fdw_handler
VALIDATOR timescaledb_fdw_validator; VALIDATOR timescaledb_fdw_validator;

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
CREATE TABLE chunkapi (time timestamptz, device int, temp float); CREATE TABLE chunkapi (time timestamptz, device int, temp float);
SELECT * FROM create_hypertable('chunkapi', 'time', 'device', 2); SELECT * FROM create_hypertable('chunkapi', 'time', 'device', 2);
NOTICE: adding not-null constraint to column "time" NOTICE: adding not-null constraint to column "time"

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- Need to be super user to create extension and add servers -- Need to be super user to create extension and add servers
\c :TEST_DBNAME :ROLE_SUPERUSER; \c :TEST_DBNAME :ROLE_SUPERUSER;
GRANT USAGE ON FOREIGN DATA WRAPPER timescaledb_fdw TO :ROLE_DEFAULT_PERM_USER; GRANT USAGE ON FOREIGN DATA WRAPPER timescaledb_fdw TO :ROLE_DEFAULT_PERM_USER;

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- =================================================================== -- ===================================================================
-- create fake fdw to create server and user mapping -- create fake fdw to create server and user mapping
-- =================================================================== -- ===================================================================

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
\c :TEST_DBNAME :ROLE_SUPERUSER \c :TEST_DBNAME :ROLE_SUPERUSER
CREATE FUNCTION _timescaledb_internal.test_remote_connection_cache() CREATE FUNCTION _timescaledb_internal.test_remote_connection_cache()
RETURNS void RETURNS void

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- =================================================================== -- ===================================================================
-- create FDW objects -- create FDW objects
-- =================================================================== -- ===================================================================

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
\c :TEST_DBNAME :ROLE_SUPERUSER \c :TEST_DBNAME :ROLE_SUPERUSER
CREATE FUNCTION _timescaledb_internal.test_remote_txn_id() CREATE FUNCTION _timescaledb_internal.test_remote_txn_id()
RETURNS void RETURNS void

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- Need to be super user to create extension and add servers -- Need to be super user to create extension and add servers
\c :TEST_DBNAME :ROLE_SUPERUSER; \c :TEST_DBNAME :ROLE_SUPERUSER;
GRANT USAGE ON FOREIGN DATA WRAPPER timescaledb_fdw TO :ROLE_DEFAULT_PERM_USER; GRANT USAGE ON FOREIGN DATA WRAPPER timescaledb_fdw TO :ROLE_DEFAULT_PERM_USER;

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
\c :TEST_DBNAME :ROLE_SUPERUSER \c :TEST_DBNAME :ROLE_SUPERUSER
CREATE SERVER some_server FOREIGN DATA WRAPPER timescaledb_fdw; CREATE SERVER some_server FOREIGN DATA WRAPPER timescaledb_fdw;
CREATE FOREIGN TABLE test_ft (c0 int, c1 varchar(10)) SERVER some_server; CREATE FOREIGN TABLE test_ft (c0 int, c1 varchar(10)) SERVER some_server;

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
CREATE TABLE chunkapi (time timestamptz, device int, temp float); CREATE TABLE chunkapi (time timestamptz, device int, temp float);

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- Need to be super user to create extension and add servers -- Need to be super user to create extension and add servers
\c :TEST_DBNAME :ROLE_SUPERUSER; \c :TEST_DBNAME :ROLE_SUPERUSER;

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- =================================================================== -- ===================================================================

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
\c :TEST_DBNAME :ROLE_SUPERUSER \c :TEST_DBNAME :ROLE_SUPERUSER

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- =================================================================== -- ===================================================================
-- create FDW objects -- create FDW objects

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
\c :TEST_DBNAME :ROLE_SUPERUSER \c :TEST_DBNAME :ROLE_SUPERUSER
CREATE FUNCTION _timescaledb_internal.test_remote_txn_id() CREATE FUNCTION _timescaledb_internal.test_remote_txn_id()

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
-- Need to be super user to create extension and add servers -- Need to be super user to create extension and add servers
\c :TEST_DBNAME :ROLE_SUPERUSER; \c :TEST_DBNAME :ROLE_SUPERUSER;

View File

@ -1,7 +1,6 @@
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- This file and its contents are licensed under the Timescale License.
-- -- Please see the included NOTICE for copyright information and
-- This file is licensed under the Timescale License, -- LICENSE-TIMESCALE for a copy of the license.
-- see LICENSE-TIMESCALE at the top of the tsl directory.
\c :TEST_DBNAME :ROLE_SUPERUSER \c :TEST_DBNAME :ROLE_SUPERUSER
CREATE SERVER some_server FOREIGN DATA WRAPPER timescaledb_fdw; CREATE SERVER some_server FOREIGN DATA WRAPPER timescaledb_fdw;