Re: possible array parsing bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: possible array parsing bug
Date: 2008-11-12 02:42:02
Message-ID: 21956.1226457722@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> This does not look right to me:

> =# select regexp_split_to_array('dsf,sdfsdf',',')::text[][1000000];

Perhaps you meant to write

select (regexp_split_to_array('dsf,sdfsdf',',')::text[])[1000000];

As-is, the [100000] is just useless decoration on the cast's target
type name.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dey, Sutapa 2008-11-12 07:31:17 SHARED LIBRARY IS NOT CREATED:Postgres could not create support for plperl
Previous Message Jeff Davis 2008-11-11 23:17:38 possible array parsing bug