mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 02:53:51 +08:00
This changes the license text for SQL files to be identical with the license text for C files.
22 lines
892 B
SQL
22 lines
892 B
SQL
-- This file and its contents are licensed under the Apache License 2.0.
|
|
-- Please see the included NOTICE for copyright information and
|
|
-- LICENSE-APACHE for a copy of the license.
|
|
|
|
\c :TEST_DBNAME :ROLE_SUPERUSER
|
|
|
|
-- Test for symbol conflicts between the loader module and the
|
|
-- versioned extension module.
|
|
-- This test fails on, e.g. Linux, unless compiled with -fvisibility=hidden
|
|
CREATE OR REPLACE FUNCTION hello_loader() RETURNS TEXT
|
|
AS 'timescaledb', 'loader_hello' LANGUAGE C IMMUTABLE PARALLEL SAFE STRICT;
|
|
|
|
SELECT hello_loader();
|
|
|
|
CREATE OR REPLACE FUNCTION hello_timescaledb() RETURNS TEXT
|
|
AS :MODULE_PATHNAME, 'timescaledb_hello' LANGUAGE C IMMUTABLE PARALLEL SAFE STRICT;
|
|
|
|
-- This calls an internal function with a conflicting name in the loader
|
|
SELECT hello_loader();
|
|
-- This calls the identically named internal function in the versioned extension
|
|
SELECT hello_timescaledb();
|