Re: Note on scalar subquery syntax

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Murphy <murphy(at)genome(dot)chop(dot)edu>
Cc: Peter Fein <pfein(at)pobox(dot)com>, PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Note on scalar subquery syntax
Date: 2005-08-03 19:24:16
Message-ID: 3303.1123097056@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kevin Murphy <murphy(at)genome(dot)chop(dot)edu> writes:
> I'm no expert, but per Peter's request, here is a generic
> array-unpacking function that works in PostgreSQL 8.0.
> [snip]

> I would imagine that a type-specific version would be faster.

No, actually it'd be exactly the same. What happens under the hood with
a plpgsql "anyarray" function is that Postgres instantiates a copy for
each specific datatype you call it with during the life of your session.
So there's no real point in doing the same thing manually.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-08-03 19:27:53 Re: ssl problem with postgres 8.0
Previous Message Magnus Hagander 2005-08-03 19:07:05 Re: Windows file path for copy