From 4dbcfbc42c69bb250fbad094a522b9b96cb74991 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Fri, 24 Jan 2025 00:07:51 +0100 Subject: [PATCH] Use explicit schema for tam handler --- sql/pre_install/tam.functions.sql | 4 ++-- sql/pre_install/tam.sql | 4 ++-- sql/updates/latest-dev.sql | 4 ++-- sql/updates/reverse-dev.sql | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sql/pre_install/tam.functions.sql b/sql/pre_install/tam.functions.sql index b1405a09142..bbbb6d6b79f 100644 --- a/sql/pre_install/tam.functions.sql +++ b/sql/pre_install/tam.functions.sql @@ -2,9 +2,9 @@ -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. -CREATE OR REPLACE FUNCTION ts_hypercore_handler(internal) RETURNS table_am_handler +CREATE OR REPLACE FUNCTION @extschema@.ts_hypercore_handler(internal) RETURNS table_am_handler AS '@MODULE_PATHNAME@', 'ts_hypercore_handler' LANGUAGE C; -CREATE OR REPLACE FUNCTION ts_hypercore_proxy_handler(internal) RETURNS index_am_handler +CREATE OR REPLACE FUNCTION @extschema@.ts_hypercore_proxy_handler(internal) RETURNS index_am_handler AS '@MODULE_PATHNAME@', 'ts_hypercore_proxy_handler' LANGUAGE C; diff --git a/sql/pre_install/tam.sql b/sql/pre_install/tam.sql index 684155cdc03..9241e29bbd0 100644 --- a/sql/pre_install/tam.sql +++ b/sql/pre_install/tam.sql @@ -2,10 +2,10 @@ -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. -CREATE ACCESS METHOD hypercore TYPE TABLE HANDLER ts_hypercore_handler; +CREATE ACCESS METHOD hypercore TYPE TABLE HANDLER @extschema@.ts_hypercore_handler; COMMENT ON ACCESS METHOD hypercore IS 'Storage engine using hybrid row/columnar compression'; -CREATE ACCESS METHOD hypercore_proxy TYPE INDEX HANDLER ts_hypercore_proxy_handler; +CREATE ACCESS METHOD hypercore_proxy TYPE INDEX HANDLER @extschema@.ts_hypercore_proxy_handler; COMMENT ON ACCESS METHOD hypercore_proxy IS 'Hypercore proxy index access method'; -- An index AM needs at least one operator class for the column type diff --git a/sql/updates/latest-dev.sql b/sql/updates/latest-dev.sql index 363c245dbb6..2600192d1dc 100644 --- a/sql/updates/latest-dev.sql +++ b/sql/updates/latest-dev.sql @@ -160,10 +160,10 @@ AS '@MODULE_PATHNAME@', 'ts_hypercore_handler' LANGUAGE C; CREATE OR REPLACE FUNCTION @extschema@.ts_hypercore_proxy_handler(internal) RETURNS index_am_handler AS '@MODULE_PATHNAME@', 'ts_hypercore_proxy_handler' LANGUAGE C; -CREATE ACCESS METHOD hypercore TYPE TABLE HANDLER ts_hypercore_handler; +CREATE ACCESS METHOD hypercore TYPE TABLE HANDLER @extschema@.ts_hypercore_handler; COMMENT ON ACCESS METHOD hypercore IS 'Storage engine using hybrid row/columnar compression'; -CREATE ACCESS METHOD hypercore_proxy TYPE INDEX HANDLER ts_hypercore_proxy_handler; +CREATE ACCESS METHOD hypercore_proxy TYPE INDEX HANDLER @extschema@.ts_hypercore_proxy_handler; COMMENT ON ACCESS METHOD hypercore_proxy IS 'Hypercore proxy index access method'; CREATE OPERATOR CLASS int4_ops diff --git a/sql/updates/reverse-dev.sql b/sql/updates/reverse-dev.sql index 89c7935ebbf..bc918202f24 100644 --- a/sql/updates/reverse-dev.sql +++ b/sql/updates/reverse-dev.sql @@ -1,8 +1,8 @@ -- Hypercore AM DROP ACCESS METHOD IF EXISTS hypercore_proxy; -DROP FUNCTION IF EXISTS ts_hypercore_proxy_handler; +DROP FUNCTION IF EXISTS @extschema@.ts_hypercore_proxy_handler; DROP ACCESS METHOD IF EXISTS hypercore; -DROP FUNCTION IF EXISTS ts_hypercore_handler; +DROP FUNCTION IF EXISTS @extschema@.ts_hypercore_handler; DROP FUNCTION IF EXISTS _timescaledb_debug.is_compressed_tid; DROP FUNCTION IF EXISTS @extschema@.compress_chunk(uncompressed_chunk REGCLASS, if_not_compressed BOOLEAN, recompress BOOLEAN, hypercore_use_access_method BOOL);