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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-general by date

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