Tsvector editing functions

From: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Tsvector editing functions
Date: 2015-10-05 17:29:29
Message-ID: DBD45805-968D-48B1-992A-79F8AC7D3140@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

There is patch that adds some editing routines for tsvector type.

tsvector delete(tsvector, text)
removes entry from tsvector by lexeme name
set unnest(tsvector)
expands a tsvector to a set of rows. Each row has following columns: lexeme, postings, weights.
text[] to_array(tsvector)
converts tsvector to array of lexemes
tsvector to_tsvector(text[])
converts array of lexemes to tsvector

Attachment Content-Type Size
tsvector_funcs.diff application/octet-stream 15.1 KB
unknown_filename text/plain 96 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2015-10-05 17:32:58 factor out encoding dependent json/jsonb regression tests
Previous Message Alexander Korotkov 2015-10-05 17:25:34 Re: WIP: Rework access method interface