tsearch2.sql and different versions of PostgreSQL

From: "Emil Oppeln-Bronikowski" <emil(dot)oppeln(dot)bronikowski(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: tsearch2.sql and different versions of PostgreSQL
Date: 2007-07-29 12:50:03
Message-ID: d2c082960707290550r7d79df75yc8b0a1e9e3669c7e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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! :-)

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Luca Ferrari 2007-07-29 13:25:42 doubt about datum
Previous Message sreenair 2007-07-26 06:01:23 BUG #3488: exporting data