X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 14C4A533DB for ; Mon, 28 Mar 2005 17:37:13 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00739-01 for ; Mon, 28 Mar 2005 16:37:07 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 70939533CE for ; Mon, 28 Mar 2005 17:37:06 +0100 (BST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j2SGb1T5040316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 28 Mar 2005 09:37:03 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j2SGb1ko071112; Mon, 28 Mar 2005 09:37:01 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j2SGb1tr071111; Mon, 28 Mar 2005 09:37:01 -0700 (MST) (envelope-from mfuhr) Date: Mon, 28 Mar 2005 09:37:01 -0700 From: Michael Fuhr To: Chandan_Kumaraiah Cc: pgsql-sql@postgresql.org Subject: Re: connectby queries Message-ID: <20050328163701.GA71083@winnie.fuhr.org> References: <2EB549AAAFEA264FA926269A5BD5E9EB146590@certsrv.satyam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2EB549AAAFEA264FA926269A5BD5E9EB146590@certsrv.satyam.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/366 X-Sequence-Number: 20845 On Mon, Mar 28, 2005 at 02:02:32PM +0530, Chandan_Kumaraiah wrote: > > How do I write hierarchical queries in postgresql, which I would write > using 'connectby' in oracle?? The contrib/tablefunc module has a connectby() function -- does it do what you want? -- Michael Fuhr http://www.fuhr.org/~mfuhr/