Re: [HACKERS] ERROR: translation failed from server encoding to wchar_t

2008-01-08 Thread ilanco
On Jan 8, 4:14 am, [EMAIL PROTECTED] (Tom Lane) wrote: [EMAIL PROTECTED] writes: I am using tsearch2 with pgsql 8.2.5 and get the following error when calling to_tsvector : translation failed from server encoding to wchar_t My database is UTF8 encoded and the data sent to to_tsvector

Re: [HACKERS] ERROR: translation failed from server encoding to wchar_t

2008-01-08 Thread Andrew Dunstan
[EMAIL PROTECTED] wrote: NEW.idxFTI := to_tsvector('simple', encode($x$E$x$|| NEW.messageblk, 'escape')); I strongly doubt that this does what you think it does - I would check the results if I were you. The $x$E$x$ should almost certainly not be there - if you are trying to

Re: [HACKERS] ERROR: translation failed from server encoding to wchar_t

2008-01-08 Thread ilanco
On Jan 8, 10:43 am, [EMAIL PROTECTED] wrote: On Jan 8, 4:14 am, [EMAIL PROTECTED] (Tom Lane) wrote: [EMAIL PROTECTED] writes: I am using tsearch2 with pgsql 8.2.5 and get the following error when calling to_tsvector : translation failed from server encoding to wchar_t My database

Re: [HACKERS] ERROR: translation failed from server encoding to wchar_t

2008-01-07 Thread ilanco
http://pastebin.ca/845670 This url provides a testcase ... fisrt pass : = UPDATE dbmail_messageblks SET idxFTI=to_tsvector('simple', encode(messageblk, 'escape')) where messageblk_idnr = 12949; ERROR: translation failed from server encoding to wchar_t second pass : = UPDATE dbmail_messageblks

Re: [HACKERS] ERROR: translation failed from server encoding to wchar_t

2008-01-07 Thread ilanco
Found something interesting with this testcase. update fails after SELECT query. Can anyone confirm this ??? dbname= UPDATE dbmail_messageblks SET idxFTI=to_tsvector('simple', encode(messageblk, 'escape')) where messageblk_idnr = 12949; UPDATE 1 dbname= UPDATE dbmail_messageblks SET

Re: [HACKERS] ERROR: translation failed from server encoding to wchar_t

2008-01-07 Thread Tom Lane
[EMAIL PROTECTED] writes: I am using tsearch2 with pgsql 8.2.5 and get the following error when calling to_tsvector : translation failed from server encoding to wchar_t My database is UTF8 encoded and the data sent to to_tsvector comes from a bytea column converted to text with