Re: connectby documentation

From: "Daniel Caune" <daniel(dot)caune(at)ubisoft(dot)com>
To: "Daniel Caune" <daniel(dot)caune(at)ubisoft(dot)com>, "Michael Fuhr" <mike(at)fuhr(dot)org>
Cc: <lucius(dot)seneca(at)gmail(dot)com>, "postgresql sql list" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: connectby documentation
Date: 2006-03-13 23:38:14
Message-ID: 1E293D3FF63A3740B10AD5AAD88535D201C6B1F2@UBIMAIL1.ubisoft.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


> > > Sorry, this is not my day: "apt-get install
postgresql-contrib-8.1"
> > > works fine... Just a link on the documentation that fully
explains
> how
> > > connectby() works would be great! :-)
> >
> > The contrib package should have installed a file named
> README.tablefunc.
> >
>
> You are right. The documentation is located in
> /usr/share/doc/postgresql-contrib-8.1/ .
>
> Wow, that was the quest for the Holy Grail! :-)
>

Huh... It seems that installing the package postgresql-contrib does not
make the work itself.

I provide hereafter a description about how to install the function
connectby (I didn't find such documentation and I don't know where to
write this documentation):

> apt-get install postgresql-contrib-8.1
> emacs /usr/share/postgresql/8.1/contrib/tablefunc.sql

Replace "$libdir" by "/usr/lib/postgresql/8.1/lib/tablefunc.so" (I
suggest to modifying only a copy of this file).

> su postgres
> psql -f /usr/share/postgresql/8.1/contrib/tablefunc.sql <database>

You can check that the work is done as follows:

> psql <database>

<database> => \df connectby
List of functions
Schema | Name | Result data type | Argument data types

--------+-----------+------------------+--------------------------------
-------------
public | connectby | setof record | text, text, text, text, integer
public | connectby | setof record | text, text, text, text,
integer, text
public | connectby | setof record | text, text, text, text, text,
integer, text

I hope that will help another PostgreSQL newbie.

--
Daniel

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2006-03-14 00:25:48 Re: connectby documentation
Previous Message Daniel Caune 2006-03-13 23:02:12 Re: connectby documentation