Re: possible array parsing bug - Mailing list pgsql-bugs

From Tom Lane
Subject Re: possible array parsing bug
Date
Msg-id 21956.1226457722@sss.pgh.pa.us
Whole thread Raw
In response to possible array parsing bug  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-bugs
Jeff Davis <pgsql@j-davis.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

pgsql-bugs by date:

Previous
From: Jeff Davis
Date:
Subject: possible array parsing bug
Next
From: "Dey, Sutapa"
Date:
Subject: SHARED LIBRARY IS NOT CREATED:Postgres could not create support for plperl