Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ALTER TABLE comments ADD COLUMN tsv_comment_text tsvector;
CREATE INDEX tsv_comment_text_idx ON comments USING gin(tsv_comment_text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment