Skip site navigation (1) Skip section navigation (2)

tsvector extraction patch

From: Hans-Juergen Schoenig -- PostgreSQL <postgres(at)cybertec(dot)at>
To: pgsql-hackers(at)postgresql(dot)org
Subject: tsvector extraction patch
Date: 2009-07-02 14:13:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

i made a small patch which i found useful for my personal tasks.
it would be nice to see this in 8.5. if not core then maybe contrib.
it transforms a tsvector to table format which is really nice for text 
processing and comparison.

test=# SELECT * FROM tsvcontent(to_tsvector('english', 'i am pretty sure 
this is a good patch'));
  lex   | rank
 good   |    8
 patch  |    9
 pretti |    3
 sure   |    4
(4 rows)

    many thanks,


Cybertec Schoenig & Schoenig GmbH
Reyergasse 9 / 2
A-2700 Wiener Neustadt

Attachment: tsvcontent-0.1-ctxdiff.diff
Description: text/x-patch (7.1 KB)


pgsql-hackers by date

Next:From: Joshua TolleyDate: 2009-07-02 14:22:14
Subject: Re: First CommitFest: July 15th
Previous:From: Dickson S. GuedesDate: 2009-07-02 13:52:20
Subject: Re: First CommitFest: July 15th

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group