schema: use rum index

https://github.com/postgrespro/rum
This commit is contained in:
Drew DeVault 2022-07-13 10:13:54 +02:00
parent ed9031a3a3
commit 82d73c6e31

View file

@ -1,6 +1,6 @@
CREATE TABLE domain (
id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
hostname text NOT NULL,
hostname text NOT NULL UNIQUE,
authoritative boolean NOT NULL,
tags text[] NOT NULL,
exclusion_patterns text[] NOT NULL DEFAULT '{}',
@ -24,4 +24,6 @@ CREATE TABLE page (
excerpt text
);
CREATE INDEX idx_page_content ON page USING GIN (fts_vector);
CREATE EXTENSION rum;
CREATE INDEX idx_page_content ON page USING RUM (fts_vector rum_tsvector_ops);