Re: Accessing an array element from a function - Mailing list pgsql-general

From Tom Lane
Subject Re: Accessing an array element from a function
Date
Msg-id 29762.1096585160@sss.pgh.pa.us
Whole thread Raw
In response to Accessing an array element from a function  (Mike Nolan <nolan@gw.tssi.com>)
List pgsql-general
Mike Nolan <nolan@gw.tssi.com> writes:
> This doesn't work:
>     select myfunc(1,2)[1];

> This does work:
>     select (myfunc(1,2)[1];

I suppose you meant

     select (myfunc(1,2))[1];

> If that's how it's supposed to work, is that documented somewhere?

http://developer.postgresql.org/docs/postgres/sql-expressions.html#AEN1593

            regards, tom lane

pgsql-general by date:

Previous
From: Scott Frankel
Date:
Subject: readline install questions
Next
From: Мирзуев Антолий Викторович
Date:
Subject: help me in PostgreSQL 7.4