Re: tsearch refactorings - Mailing list pgsql-patches

From Tom Lane
Subject Re: tsearch refactorings
Date
Msg-id 511.1189105152@sss.pgh.pa.us
Whole thread Raw
In response to Re: tsearch refactorings  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Responses Re: tsearch refactorings
Re: tsearch refactorings
List pgsql-patches
"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> I started to write a patch for that, as I realized that we're
> transferring the strings in a tsvector/tsquery in server encoding.
> That's not good, right? A dump created with COPY ... BINARY wouldn't be
> portable across clusters with different encodings, for example.

Any portion of a binary value that is considered textual should be
converted to and from client encoding --- cf textsend/textrecv.
This should be pretty trivial to fix, just call a different support
routine.

BTW, Teodor, are you intending to review/apply Heikki's tsearch fixes,
or do you want someone else to do it?

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: HOT patch - version 15
Next
From: Alvaro Herrera
Date:
Subject: Re: HOT patch - version 15