Re: tsearch2api project

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tsearch2api project
Дата
Msg-id 8639.1192644217@sss.pgh.pa.us
обсуждение исходный текст
Ответ на tsearch2api project  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: tsearch2api project  (andy <andy@squeakycode.net>)
Re: tsearch2api project  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> I created new project on pgfoundry. It's wrapper of integrated
> fulltext and it's binary compatible with TSearch2 API.

> * it works, (I am able load 82 dump without changes)
> * it is ugly :( . I expected, so this wrapper can be more elegant, but
> not. I had to create full dual interface to fulltext.

Surely this shouldn't be creating its own tsvector datatype?  Having
both public.tsvector and pg_catalog.tsvector seems like a seriously
bad idea, if only because of confusion.  ISTM you should only be
creating new public.foo objects for the functions whose names changed.


Anyway, the picture that's starting to emerge for me is that we
should repurpose contrib/tsearch2 as a repository for scripts
and documentation to help people migrate from previous use of
tsearch2 to use of the new core facilities; and for people who
want to try to *not* migrate, but keep using the old API,
a compatibility module on pgfoundry seems to make sense.

We could alternatively put the migration support into a new
subdirectory named contrib/tsearch_migrate or something like that.
But I'm thinking tsearch2 is a good place because that's where
users of the old tsearch2 are likely to look.

Also, something that's not been addressed at all yet, AFAICS,
is providing a way to migrate an existing tsearch2 *configuration*
(as opposed to data or application code).  I'm not sure there can
be any automatic way to do that, but at the very least we need
some documentation about what corresponds to what.

Comments?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Deprecating heap_formtuple/heap_modifytuple/heap_deformtuple
Следующее
От: andy
Дата:
Сообщение: Re: tsearch2api project