Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0B6012E0046 for ; Tue, 20 Nov 2007 22:54:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21863-01 for ; Tue, 20 Nov 2007 22:54:31 -0400 (AST) Received: from mail.refusion.com (mail.refusion.com [213.144.155.20]) by postgresql.org (Postfix) with ESMTP id C6AA22E003D for ; Tue, 20 Nov 2007 22:54:31 -0400 (AST) Received: from [192.168.2.10] by mail.refusion.com (Cipher TLSv1:RC4-MD5:128) (MDaemon PRO v9.5.4) with ESMTP id md50002625494.msg for ; Wed, 21 Nov 2007 03:54:31 +0100 Message-ID: <47439DDF.5010600@alternize.com> Date: Wed, 21 Nov 2007 03:54:23 +0100 From: "Thomas H." User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #3767: tsearch2 index creation fatal crash References: <200711210225.lAL2PE8a064911@wwwmaster.postgresql.org> <47439A13.3000404@alternize.com> <21708.1195613326@sss.pgh.pa.us> In-Reply-To: <21708.1195613326@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: info@alternize.com X-Spam-Processed: mail.refusion.com, Wed, 21 Nov 2007 03:54:31 +0100 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 77.56.93.225 X-Return-Path: me@alternize.com X-Envelope-From: me@alternize.com X-MDaemon-Deliver-To: pgsql-bugs@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/261 X-Sequence-Number: 18905 >> the reported problem below can be reproduced by using this simple query >> straight from the documentation: > >> SELECT to_tsvector('a fat cat sat on a mat and ate a fat rat'); > > Works for me: > > u=# set default_text_search_config = 'pg_catalog.german'; > SET > u=# SELECT to_tsvector('a fat cat sat on a mat and ate a fat rat'); > to_tsvector > ------------------------------------------------------------------------------- > 'a':1,6,10 'on':5 'and':8 'ate':9 'cat':3 'fat':2,11 'mat':7 'rat':12 'sat':4 > (1 row) > even when implicitly setting default_text_search_config before the query as you did, it fails (but gives a slightly different error message): ERROR: translation from wchar_t to server encoding failed: No such file or directory maybe win32 / file paths related? there are more problems with tsvectors. this also fails: SELECT ' just a test: 123 '::tsvector; ERROR: syntax error in tsvector: " just a test: 123 " ********** Error ********** ERROR: syntax error in tsvector: " just a test: 123 " SQL state: 42601 without ":" it works: SELECT ' just a test 123 '::tsvector; regards, thomas