pgtype icon indicating copy to clipboard operation
pgtype copied to clipboard

Add support for tsvector and tsquery

Open acaprari opened this issue 3 years ago • 3 comments

Please add support for tsvector and tsquery PG types.

A use case for them would be allowing for a custom full text parser written at application level whose results are directly applied in queries, without using to_tsvector() and to_tsquery() functions.

Also, a BinaryEncoder implementation for tsvector would allow direct insertions of tsvectors via COPY FROM.

acaprari avatar Sep 30 '21 17:09 acaprari

Hi @jackc, I'd like to work on this issue. Can I give a try? thanks

ksankeerth avatar Aug 27 '22 07:08 ksankeerth

@ksankeerth You're welcome to it. But pgx v5 should be released within the next month and it has significant changes to the type system. You might want to build it directly there to save the porting work from v4 to v5.

jackc avatar Aug 27 '22 14:08 jackc

Hello, any update on this? Thanks!

ZhouXing19 avatar Jun 01 '24 18:06 ZhouXing19