pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Lazarus <andrew@pillette.com>
To: FERREIRA, William (VALTECH) <william.ferreira@airbus.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: execution plan : Oracle vs PostgreSQL
Date: Mon, 06 Feb 2006 12:36:15 -0800
Message-ID: <43E7B33F.4030509@pillette.com> (raw)
In-Reply-To: <414D259CE29DE54DAD534037C83CE4B726961E@FR0-MAILMB20.res.airbus.corp>
References: <414D259CE29DE54DAD534037C83CE4B726961E@FR0-MAILMB20.res.airbus.corp>

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 ?

Attachments:

andrew.vcf (text/x-vcard, 296B) download 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

view thread (4+ messages)

Message-ID: <43E7B33F.4030509@pillette.com>
Permalink:  ../43E7B33F.4030509@pillette.com/
Also on:    postgresql.org/message-id/43E7B33F.4030509@pillette.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andrew@pillette.com, william.ferreira@airbus.com, tgl@sss.pgh.pa.us
  Subject: Re: execution plan : Oracle vs PostgreSQL
  In-Reply-To: <43E7B33F.4030509@pillette.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox