initial commit on Federted servers
release gate / check (push) Failing after 8m35s

This commit is contained in:
Andrew S Erwin
2026-10-19 16:23:55 -05:00
commit b9721ff13f
217 changed files with 31534 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
-- 007_page_search_index.sql — make page search index-backed and literal.
--
-- The page list searched title/content with an unescaped ILIKE pattern: "%"
-- and "_" behaved as wildcards and every request scanned the owner's pages.
-- The handler now escapes those characters; these trigram indexes let
-- Postgres serve the substring predicate without a sequential scan.
-- pg_trgm is a trusted extension, so the database owner can enable it.
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE INDEX IF NOT EXISTS "Page_title_trgm_idx" ON "Page" USING gin (title gin_trgm_ops);
CREATE INDEX IF NOT EXISTS "Page_content_trgm_idx" ON "Page" USING gin (content gin_trgm_ops);