tsearch2.sql and different versions of PostgreSQL

Поиск
Список
Период
Сортировка
От Emil Oppeln-Bronikowski
Тема tsearch2.sql and different versions of PostgreSQL
Дата
Msg-id d2c082960707290550r7d79df75yc8b0a1e9e3669c7e@mail.gmail.com
обсуждение исходный текст
Ответы Re: tsearch2.sql and different versions of PostgreSQL
Список pgsql-novice
Hi there,

well, maybe I'm not total PgSQL noob, but I rather ask here if my
weekend Google-Fu skills are weak and problem is trivial. My problem
is like that: I took over old project by my ex employer and wanted to
clean it a bit. I realized that installer would be a good way to
resolve copy-and-edit-configuration-file approach. I hacked installer
and got myself into I-rule-mode.

All was fun and good before other company told me they can't install it.

This project relies on tsearch code. Installer hits you should have
tsearch2.sql used over your new database or on template1. On my server
CREATE DATABASE gets functions from template1 and everything works. I
assumed it will be same story for them.

But it wasn't. I run:

%apt-cache show postgresql-8.1 | grep Version
Version: 8.1.8-1~bpo.1

And they have PostgreSQL from same branch (ie. 8.1) but a little older
revision. And their tsearch2.sql and mine tsearch2.sql is different!
It gets different order and number of params, IIRC.

Is this possible? Or am I blind or unaware of something? I never had
to admin PostgreSQL database so I feel lost. :-)

If tsearch2.sql changes over versions of PgSQL, what is the best
scenario of managing installer development for PgSQL-enabled projects?
Should I wrap function calls in my own functions? Help, help! I'm
being repressed! :-)

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

Предыдущее
От: "Christian Leclerc"
Дата:
Сообщение: Re: How to optimize insert statements ?
Следующее
От: Bill Totman
Дата:
Сообщение: timestamp to date and time column migration