Is there an easy way to remove the appearance of lexeme in tsvector?

I have a tsvector column in a table, and I would like to be able to remove the token from tsvector.

I started playing with ts_stat to rebuild the new tsvector, but that seems pretty complicated.

Is there an easy way to do this?

+3
source share
1 answer

Send it to text, delete it with a regular expression, and return it to tsvector.

+5
source

Source: https://habr.com/ru/post/1733141/


All Articles