Skip to content

Commit

Permalink
Fix TAM handling in update script
Browse files Browse the repository at this point in the history
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
svenklemm committed Jan 23, 2025
1 parent bbf183c commit 161f768
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sql/updates/latest-dev.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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_update_placeholder' LANGUAGE C;

-- CREATE OR REPLACE FUNCTION ts_hypercore_proxy_handler(internal) RETURNS index_am_handler
-- AS '@MODULE_PATHNAME@', 'ts_update_placeholder' 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);

0 comments on commit 161f768

Please sign in to comment.