Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E701D2E0044; Wed, 21 Nov 2007 00:58:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 72446-02; Wed, 21 Nov 2007 00:58:48 -0400 (AST) Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 9B5162E0035; Wed, 21 Nov 2007 00:58:48 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id lAL4wpN06312; Tue, 20 Nov 2007 23:58:51 -0500 (EST) From: Bruce Momjian Message-Id: <200711210458.lAL4wpN06312@momjian.us> Subject: Re: BUG #3767: tsearch2 index creation fatal crash In-Reply-To: <23539.1195620792@sss.pgh.pa.us> To: Tom Lane Date: Tue, 20 Nov 2007 23:58:51 -0500 (EST) CC: "Thomas H." , pgsql-bugs@postgresql.org, pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/266 X-Sequence-Number: 18910 Tom Lane wrote: > "Thomas H." writes: > > i saw my mistake. i misinterpreted the examples to show the possibility > > to convert *any* text by using casting to tsvector as an alternative to > > using to_tsvector :) > > Yeah, the examples in section 12.1.2 are not actually good practice: > both sides of the match should usually get normalized before comparison, > and these examples don't do that. > > I'm not sure that putting in to_tsvector calls there would be an > improvement, though, since at that point we haven't introduced > to_tsvector. > > Thoughts anyone? Yep, I saw that chicken and egg problem in the docs when I was reviewing it long ago. I never came up with a solution either. We would have to introduce configurations a lot earlier, but how would you explain them when you don't know what a tsvector is. -- Bruce Momjian http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +