Re: Getting "connectby" installed

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Getting "connectby" installed
Дата
Msg-id 3F823E63.4010108@joeconway.com
обсуждение исходный текст
Ответ на Re: Getting "connectby" installed  (Tim Wright <postgresql@icehawk.freeserve.co.uk>)
Ответы Re: Getting "connectby" installed
Список pgsql-novice
Tim Wright wrote:
> Looks like the right thing - "psql --version" on my setup reports
> version 7.3.2. I'll have a play around this evening when I get in -
> many thanks for your help!
>

There should be an RPM something like
postgresql-contrib-7.3.2-1PGDG.1 installed. If not, I don't know if it
will work on Mandrake or not, but maybe you can rebuild from the source RPM:
   ftp://ftp8.us.postgresql.org/pub/pgsql/binary/v7.3.2/RPMS/SRPMS/
(BTW, you probably ought to upgrade to 7.3.4)

Once the contrib RPM is installed, you ought to be able to find
tablefunc.sql somewhere. Assuming rpm on Mandrake is similar to Red Hat,
try:
   rpm -ql postgresql-contrib | grep tablefunc.sql

Then direct that file into a database, e.g.:

$ createdb tablefunc
CREATE DATABASE
$ psql tablefunc < /usr/share/pgsql/contrib/tablefunc.sql
SET
SET
CREATE FUNCTION
CREATE TYPE
CREATE TYPE
CREATE TYPE
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION

At this point, database "tablefunc" should have connectby() installed
and ready to go.

HTH,

Joe


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

Предыдущее
От: "Partha Sur"
Дата:
Сообщение: Re: Filtering duplicated row with a trigger
Следующее
От: papapep
Дата:
Сообщение: Re: [personal] Re: Filtering duplicated row with a trigger