2023-07-27 12:11:00 +02:00
|
|
|
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
|
|
|
|
2023-08-02 12:44:51 -04:00
|
|
|
CREATE INDEX IF NOT EXISTS idx_comment_content_trigram ON comment USING gin (content gin_trgm_ops);
|
2023-07-27 12:11:00 +02:00
|
|
|
|
2023-08-02 12:44:51 -04:00
|
|
|
CREATE INDEX IF NOT EXISTS idx_post_trigram ON post USING gin (name gin_trgm_ops, body gin_trgm_ops);
|
2023-07-27 12:11:00 +02:00
|
|
|
|
2023-08-02 12:44:51 -04:00
|
|
|
CREATE INDEX IF NOT EXISTS idx_person_trigram ON person USING gin (name gin_trgm_ops, display_name gin_trgm_ops);
|
2023-07-27 12:11:00 +02:00
|
|
|
|
2023-08-02 12:44:51 -04:00
|
|
|
CREATE INDEX IF NOT EXISTS idx_community_trigram ON community USING gin (name gin_trgm_ops, title gin_trgm_ops);
|
2023-07-27 12:11:00 +02:00
|
|
|
|