X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 00BAE9DCD90 for ; Mon, 13 Mar 2006 19:38:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90252-08 for ; Mon, 13 Mar 2006 19:38:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from relay01.mdc.ubisoft.com (relay01.mdc.ubisoft.com [216.98.56.134]) by postgresql.org (Postfix) with ESMTP id 466889DC9D0 for ; Mon, 13 Mar 2006 19:38:12 -0400 (AST) Received: from mdc-owa01.ubisoft.org (srvowa1-mdc.ubisoft.org [10.129.1.20]) by smarthost.mdc.ubisoft.com (Postfix) with ESMTP id 577894BC80; Mon, 13 Mar 2006 18:38:15 -0500 (EST) Received: from UBIMAIL1.ubisoft.org ([10.129.1.15]) by mdc-owa01.ubisoft.org with Microsoft SMTPSVC(6.0.3790.1830); Mon, 13 Mar 2006 18:38:15 -0500 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: connectby documentation Date: Mon, 13 Mar 2006 18:38:14 -0500 Message-ID: <1E293D3FF63A3740B10AD5AAD88535D201C6B1F2@UBIMAIL1.ubisoft.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] connectby documentation Thread-Index: AcZG8lKbExX2sQDVRAqc+h4jioN8cwAATEng From: "Daniel Caune" To: "Daniel Caune" , "Michael Fuhr" Cc: , "postgresql sql list" X-OriginalArrivalTime: 13 Mar 2006 23:38:15.0143 (UTC) FILETIME=[32E5DF70:01C646F7] X-Ubisoft-MailScanner-Information: Please contact administrators@ubisoft.qc.ca X-Ubisoft-MailScanner: Found to be clean X-Ubisoft-MailScanner-SpamCheck: X-MailScanner-From: daniel.caune@ubisoft.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.115 required=5 tests=[AWL=0.115] X-Spam-Score: 0.115 X-Spam-Level: X-Archive-Number: 200603/207 X-Sequence-Number: 24553 > > > 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. > > >=20 > You are right. The documentation is located in > /usr/share/doc/postgresql-contrib-8.1/ . >=20 > Wow, that was the quest for the Holy Grail! :-) >=20 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 You can check that the work is done as follows: > psql =3D> \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