Re: Tsvector editing functions - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Tsvector editing functions
Date
Msg-id CA+TgmoYAQHp6vgUU-Ma4A-19rpLm4cTSUvfV24z8-0Aupea5gA@mail.gmail.com
Whole thread Raw
In response to Tsvector editing functions  (Stas Kelvich <s.kelvich@postgrespro.ru>)
Responses Re: Tsvector editing functions
List pgsql-hackers
On Mon, Oct 5, 2015 at 1:29 PM, Stas Kelvich <s.kelvich@postgrespro.ru> wrote:
> 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

When submitting a patch, it's a good idea to explain why someone would
want the feature you are adding.  Maybe that's obvious to you, but it
isn't clear to me why we'd want this.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Odd query execution behavior with extended protocol
Next
From: Andreas 'ads' Scherbaum
Date:
Subject: Small documentation fix in src/bin/initdb/po/zh_CN.po