mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-31 01:15:18 +08:00
This changes the license text for SQL files to be identical with the license text for C files.
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
-- 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();
|
|
hello_loader
|
|
-------------------
|
|
hello from loader
|
|
(1 row)
|
|
|
|
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();
|
|
hello_loader
|
|
-------------------
|
|
hello from loader
|
|
(1 row)
|
|
|
|
-- This calls the identically named internal function in the versioned extension
|
|
SELECT hello_timescaledb();
|
|
hello_timescaledb
|
|
------------------------
|
|
hello from timescaledb
|
|
(1 row)
|
|
|