Re: Note on scalar subquery syntax - Mailing list pgsql-general

From Peter Fein
Subject Re: Note on scalar subquery syntax
Date
Msg-id 42F0FC57.3020200@pobox.com
Whole thread Raw
In response to Note on scalar subquery syntax  (Kevin Murphy <murphy@genome.chop.edu>)
Responses Re: Note on scalar subquery syntax  (Kevin Murphy <murphy@genome.chop.edu>)
List pgsql-general
Kevin Murphy wrote:
> I thought this might be helpful in the future to other duffers such as
> myself.
>
> The following is my big contribution to the documentation of the use of
> scalar subqueries ;-):
>
> You have to wrap a scalar subquery in its own parentheses even where you
> might think it to be unnecessary, such as when the subquery is the sole
> argument to a function.
>
> As an example, I wrote a function to explode, or unpack, the elements of
> an array onto separate rows (its return type is SETOF whatever), but it
> took me a while to figure out how to use it effectively in queries.

Mind posting it?  I know I've had need of such I thing & IIRC others
have asked as well...

pgsql-general by date:

Previous
From: "Luca Stancapiano"
Date:
Subject: ssl problem with postgres 8.0
Next
From: Ragnar Hafstað
Date:
Subject: Re: postgresql.conf value need advice