-
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.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,3 +153,26 @@ 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'; | ||
|
||
-- An index AM needs at least one operator class for the column type | ||
-- that the index will be defined on. To create the index, at least | ||
-- one column needs to be defined. For "hypercore_proxy", the "count" column | ||
-- on the hypercore's internal compressed relation is used since it | ||
-- is always present. Since "count" has type int, we need a | ||
-- corresponding operator class. | ||
CREATE OPERATOR CLASS int4_ops | ||
DEFAULT FOR TYPE int4 USING hypercore_proxy AS | ||
OPERATOR 1 = (int4, int4), | ||
FUNCTION 1 hashint4(int4); |