X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E63049DCCAA for ; Mon, 6 Feb 2006 16:21:51 -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 38258-06-2 for ; Mon, 6 Feb 2006 16:21:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from pillette.com (adsl-67-119-5-202.dsl.snfc21.pacbell.net [67.119.5.202]) by postgresql.org (Postfix) with ESMTP id 5BAB99DCCA6 for ; Mon, 6 Feb 2006 16:21:47 -0400 (AST) Received: from [192.168.1.234] ([192.168.1.234]) by pillette.com (8.11.6/8.11.6) with ESMTP id k16KLTK03372; Mon, 6 Feb 2006 12:21:29 -0800 Message-ID: <43E7B33F.4030509@pillette.com> Date: Mon, 06 Feb 2006 12:36:15 -0800 From: Andrew Lazarus Reply-To: andrew@pillette.com Organization: Pillette Investment Management User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "FERREIRA, William (VALTECH)" CC: Tom Lane , pgsql-performance@postgresql.org Subject: Re: execution plan : Oracle vs PostgreSQL References: <414D259CE29DE54DAD534037C83CE4B726961E@FR0-MAILMB20.res.airbus.corp> In-Reply-To: <414D259CE29DE54DAD534037C83CE4B726961E@FR0-MAILMB20.res.airbus.corp> Content-Type: multipart/mixed; boundary="------------000005050406040802050202" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200602/48 X-Sequence-Number: 17034 This is a multi-part message in MIME format. --------------000005050406040802050202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Indeed there is: you can use an ARRAY constructor with SELECT. Here's some PGPLSQL code I have (simplified and with the variable names shrouded). SELECT INTO m ARRAY(SELECT d FROM hp WHERE hp.ss=$1 ORDER BY 1); FERREIRA, William (VALTECH) wrote: > maybe there is an other way to query children directly into an array and having query plan caching ? --------------000005050406040802050202 Content-Type: text/x-vcard; charset=utf-8; name="andrew.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="andrew.vcf" begin:vcard fn:Andrew Lazarus n:Lazarus;Andrew org:Pillette Investment Management;Research and Development adr;dom:;;3028 Fillmore;San Francisco;CA;94123 email;internet:andrew@pillette.com title:Director tel;work:800-366-0688 tel;fax:415-440-4093 url:http://www.pillette.com version:2.1 end:vcard --------------000005050406040802050202--