pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas H. <me@alternize.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-docs@postgresql.org
Subject: Re: BUG #3767: tsearch2 index creation fatal crash
Date: Tue, 20 Nov 2007 23:53:12 -0500
Message-ID: <23539.1195620792@sss.pgh.pa.us> (raw)
In-Reply-To: <4743B73C.4080606@alternize.com>
References: <200711210225.lAL2PE8a064911@wwwmaster.postgresql.org>
	<47439A13.3000404@alternize.com>
	<21708.1195613326@sss.pgh.pa.us>
	<47439DDF.5010600@alternize.com>
	<22471.1195616725@sss.pgh.pa.us>
	<4743B73C.4080606@alternize.com>

"Thomas H." <me@alternize.com> 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?

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <23539.1195620792@sss.pgh.pa.us>
Permalink:  ../23539.1195620792@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23539.1195620792@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, me@alternize.com, pgsql-bugs@postgresql.org
  Subject: Re: BUG #3767: tsearch2 index creation fatal crash
  In-Reply-To: <23539.1195620792@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox