FUNCTIONS / TEXT SEARCH FUNCTIONS AND OPERATORS
Removes any occurrence of the given lexeme from the vector.
9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16 17 18 19 beta 3 20 devel
Signatures & examples ts_delete ( vector tsvector, lexeme text ) → tsvector Removes any occurrence of the given lexeme from the vector . The lexeme string is treated as a lexeme as-is, without further processing.ts_delete('fat:2,4 cat:3 rat:5A'::tsvector, 'fat') → 'cat':3 'rat':5A ts_delete ( vector tsvector, lexemes text[] ) → tsvector Removes any occurrences of the lexemes in lexemes from the vector . The strings in lexemes are taken as lexemes as-is, without further processing. Strings that do not match any lexeme in vector are ignored.ts_delete('fat:2,4 cat:3 rat:5A'::tsvector, ARRAY['fat','rat']) → 'cat':3
Version history 3 PG 14 → 15 changed PG 12 → 13 changed PG 9.5 → 9.6 added
Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source