X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7065FD1ED27 for ; Sun, 4 Apr 2004 10:14:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 31706-06 for ; Sun, 4 Apr 2004 07:14:54 -0300 (ADT) Received: from relay01.kbs.net.au (relay01.kbs.net.au [203.220.32.149]) by svr1.postgresql.org (Postfix) with ESMTP id 337A2D1ED20 for ; Sun, 4 Apr 2004 07:14:33 -0300 (ADT) Received: from [203.221.247.226] (helo=familyhealth.com.au) by relay01.kbs.net.au with esmtp (Exim 3.36 #2) id 1BA4eR-0002IX-00; Sun, 04 Apr 2004 20:14:52 +1000 Message-ID: <406FE017.1010602@familyhealth.com.au> Date: Sun, 04 Apr 2004 18:14:47 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kamalraj Singh Madhan Cc: pgsql-performance@postgresql.org Subject: Re: Substitute for this oracle query in postGre References: <200404040323.i343Nw3Z002747@gw.tssi.com> <02ad01c41a1d$4255a7a0$4ecb09c0@KAMALR> In-Reply-To: <02ad01c41a1d$4255a7a0$4ecb09c0@KAMALR> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/31 X-Sequence-Number: 6331 Hi, Try looking at the contrib/tablefunc add-in module. Chris Kamalraj Singh Madhan wrote: > Hi Friends, > Does anybody know the substitute of the oracle function 'connect by > prior' in postgre sql. > The query is basically being used to get a tree structure of records. The > query in oracle is :- > > select pkmsgid > from mstmessage > connect by prior pkmsgid = msgparentid > start with msgparentid = 1 > > Kindly suggest. > > regards > Kamal > > > > ********************************************************************* > Network Programs is a SEI CMM Level 5 Certified Company > ******************************************************************** > The information contained in this communication (including any attachments) is > intended solely for the use of the individual or entity to whom it is addressed > and others authorized to receive it. It may contain confidential or legally > privileged information. If you are not the intended recipient you are hereby > notified that any disclosure, copying, distribution or taking any action in > reliance on the contents of this information is strictly prohibited and may be > unlawful. If you have received this communication in error, please notify us > immediately by responding to this email and then delete it from your system. > Network Programs (India) Limited is neither liable for the proper and complete > transmission of the information contained in this communication nor for any > delay in its receipt. > ********************************************************************* > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org