Skip site navigation (1) Skip section navigation (2)

unnest with generate_subscripts and same array

From: Carlos Fuentes <caf(at)rentrakmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: unnest with generate_subscripts and same array
Date: 2011-05-27 00:17:06
Message-ID: BANLkTik5DapyrqSE81VPG8vDbbW7kx_YuQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
Hello,
Given that these are the only one array_col in play, is
    select unnest(array_col), generate_subscripts(array_col) from
table_with_array_col ;
guaranteed to gave the subscripts match the array element?  In all the
testing I've done it's worked, but I don't know if I was just lucky :)

Thanks,
-Carlos Fuentes

Responses

pgsql-general by date

Next:From: David JohnstonDate: 2011-05-27 00:58:57
Subject: Re: unnest with generate_subscripts and same array
Previous:From: Tom LaneDate: 2011-05-26 23:30:54
Subject: Re: max_connections proposal

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group