Re: pg_migrator and an 8.3-compatible tsvector data type

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Teodor Sigaev <teodor(at)sigaev(dot)ru>
Subject: Re: pg_migrator and an 8.3-compatible tsvector data type
Date: 2009-05-28 21:42:27
Message-ID: 200905282142.n4SLgR927181@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh Berkus wrote:
> On 5/28/09 2:30 PM, Bruce Momjian wrote:
> > Because no one has responded, I am going to prevent pg_migrator from
> > working with a cluster that uses tsvector. I realize this limits
> > pg_migrator's usefulness, but I have to move on.
>
> I don't know how to fix the issue, certainly.
>
> Why was there a format change to tsvector anyway? Was there an
> important reason for this?

The ordering of the lexems was changed:

/*
* Convert 8.3 tsvector to 8.4
*
* 8.3 sorts lexemes by its length and if lengths are the same then it uses
* alphabetic order; 8.4 sorts lexemes in lexicographical order, e.g.
*
* => SELECT 'c bb aaa'::tsvector;
* tsvector
* ----------------
* 'aaa' 'bb' 'c' -- 8.4
* 'c' 'bb' 'aaa' -- 8.3
*/

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2009-05-28 21:44:32 Re: pg_migrator and an 8.3-compatible tsvector data type
Previous Message Josh Berkus 2009-05-28 21:39:33 Re: pg_migrator and an 8.3-compatible tsvector data type