-
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
30 additions
and
7 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 |
---|---|---|
@@ -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 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 | ||
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
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 |
---|---|---|
|
@@ -153,3 +153,20 @@ CREATE PROCEDURE @[email protected]_chunks( | |
CREATE PROCEDURE @[email protected]_chunks( | ||
chunks REGCLASS[] | ||
) LANGUAGE C AS '@MODULE_PATHNAME@', 'ts_update_placeholder'; | ||
|
||
CREATE OR REPLACE FUNCTION 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 | ||
AS '@MODULE_PATHNAME@', 'ts_hypercore_proxy_handler' LANGUAGE C; | ||
|
||
CREATE ACCESS METHOD hypercore TYPE TABLE HANDLER 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; | ||
COMMENT ON ACCESS METHOD hypercore_proxy IS 'Hypercore proxy index access method'; | ||
|
||
CREATE OPERATOR CLASS int4_ops | ||
DEFAULT FOR TYPE int4 USING hypercore_proxy AS | ||
OPERATOR 1 = (int4, int4), | ||
FUNCTION 1 hashint4(int4); |