timescaledb/tsl/test/shared/sql/extension.sql
Sven Klemm 06d8375594 Enhance extension function test
This patch changes the extension function list to include the
signature as well since functions with different signature are
separate objects in postgres. This also changes the list to include
all functions. Even though functions in internal schemas are not
considered public API they still need be treated the same as functions
in other schemas with regards to extension upgrade/downgrade.

This patch also moves the test to regresscheck-shared since we do
not dedicated database to run these tests.
2022-03-10 11:22:33 +01:00

24 lines
859 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.
\pset tuples_only on
-- list all extension functions
-- any change in the output of this query requires adjustments
-- in the update and downgrade scripts
-- get_telemetry_report is excluded as it will not be present
-- when built with telemetry disabled
SELECT p.oid::regprocedure::text
FROM pg_proc p
JOIN pg_depend d ON
d.objid = p.oid AND
d.deptype = 'e' AND
d.refclassid = 'pg_extension'::regclass AND
d.classid = 'pg_proc'::regclass
JOIN pg_extension e ON
e.extname = 'timescaledb' AND
e.oid = d.refobjid
WHERE proname <> 'get_telemetry_report'
ORDER BY pronamespace::regnamespace::text COLLATE "C", p.oid::regprocedure::text COLLATE "C";