Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing shared libraries for pg_search, vectorize #740

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
-- Add the library for pg_search
WITH trunk_project_cte AS (
SELECT id
FROM v1.trunk_project_versions
WHERE trunk_project_name = 'pg_search'
AND version = '0.7.3'
),
extension_version_cte AS (
SELECT ev.id
FROM v1.extension_versions ev
JOIN trunk_project_cte tpv ON ev.trunk_project_version_id = tpv.id
WHERE ev.extension_name = 'pg_search'
)
INSERT INTO v1.extensions_loadable_libraries (
extension_version_id, library_name, requires_restart, priority
)
SELECT ev.id, 'pg_search', true, 2147483647
FROM extension_version_cte ev
ON CONFLICT (extension_version_id, library_name)
DO UPDATE SET
requires_restart = EXCLUDED.requires_restart,
priority = EXCLUDED.priority;

-- Add the library for vectorize
WITH trunk_project_cte AS (
SELECT id
FROM v1.trunk_project_versions
WHERE trunk_project_name = 'vectorize'
AND version = '0.17.0'
),
extension_version_cte AS (
SELECT ev.id
FROM v1.extension_versions ev
JOIN trunk_project_cte tpv ON ev.trunk_project_version_id = tpv.id
WHERE ev.extension_name = 'vectorize'
)
INSERT INTO v1.extensions_loadable_libraries (
extension_version_id, library_name, requires_restart, priority
)
SELECT ev.id, 'vectorize', true, 2147483647
FROM extension_version_cte ev
ON CONFLICT (extension_version_id, library_name)
DO UPDATE SET
requires_restart = EXCLUDED.requires_restart,
priority = EXCLUDED.priority;
Loading