Re: How to submit Tsearch V2 ?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
Cc: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How to submit Tsearch V2 ?
Date: 2003-07-04 13:49:22
Message-ID: 20030704214801.X12459-100000@houston.familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> So, for upgrading tsearch to V2 you need to do following:
> 1 rename columns or typecast for type txtidx to tsvector, query_txt to tsquery
> 2 rename function txt2txtidx to to_tsvector, ( may be to strip(to_tsvector()),
> now tsvector has information for ranking ), trigger 'tsearch' isn't changed
> 3 operator class (in create index command) gist_txtidx_ops to gist_tsvector_ops
> 4 In queries: operator ## to @@ to_tsquery() and remove mquery_txt typecast
> 5 If your locale of pgsql differ from 'C', execute before first query
> select set_curcfg('default');
>
> That's all. So upgrade from v1 to v2 isn't difficult.

And you expect thousands of users to do this? I don't know about that...

I can barely handle it myself, and I was looking forward to a Postgres
upgrade for a change where I didn't have to edit the dump :(

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-07-04 13:50:26 Re: PostgreSQL vs. MySQL
Previous Message Rod Taylor 2003-07-04 13:45:30 Re: PostgreSQL vs. MySQL