-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The TAM SQL code was not written with update and downgrade scripts in mind prevents further releases past 2.18.0 due to not splitting up the parts that need to be part of every update script and those that can only run once during initial installation.
- Loading branch information
Showing
4 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,10 @@ | |
-- Please see the included NOTICE for copyright information and | ||
-- LICENSE-APACHE for a copy of the license. | ||
|
||
CREATE FUNCTION ts_hypercore_handler(internal) RETURNS table_am_handler | ||
AS '@MODULE_PATHNAME@', 'ts_hypercore_handler' LANGUAGE C; | ||
|
||
CREATE ACCESS METHOD hypercore TYPE TABLE HANDLER ts_hypercore_handler; | ||
CREATE ACCESS METHOD hypercore TYPE TABLE HANDLER @[email protected]_hypercore_handler; | ||
COMMENT ON ACCESS METHOD hypercore IS 'Storage engine using hybrid row/columnar compression'; | ||
|
||
CREATE FUNCTION ts_hypercore_proxy_handler(internal) RETURNS index_am_handler | ||
AS '@MODULE_PATHNAME@', 'ts_hypercore_proxy_handler' LANGUAGE C; | ||
|
||
CREATE ACCESS METHOD hypercore_proxy TYPE INDEX HANDLER ts_hypercore_proxy_handler; | ||
CREATE ACCESS METHOD hypercore_proxy TYPE INDEX HANDLER @[email protected]_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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- 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. | ||
|
||
CREATE OR REPLACE FUNCTION @[email protected]_hypercore_handler(internal) RETURNS table_am_handler | ||
AS '@MODULE_PATHNAME@', 'ts_hypercore_handler' LANGUAGE C; | ||
|
||
CREATE OR REPLACE FUNCTION @[email protected]_hypercore_proxy_handler(internal) RETURNS index_am_handler | ||
AS '@MODULE_PATHNAME@', 'ts_hypercore_proxy_handler' LANGUAGE C; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 @[email protected]_chunk(uncompressed_chunk REGCLASS, if_not_compressed BOOLEAN, recompress BOOLEAN, hypercore_use_access_method BOOL); | ||
|