Re: [GENERAL] Empty arrays with ARRAY[] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] Empty arrays with ARRAY[]
Date
Msg-id 21455.1196178961@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Empty arrays with ARRAY[]  ("Brendan Jurd" <direvus@gmail.com>)
Responses Re: [GENERAL] Empty arrays with ARRAY[]
List pgsql-hackers
"Brendan Jurd" <direvus@gmail.com> writes:
> So far I've only considered the '::' cast syntax suggested in the
> original proposal, e.g.:

> ARRAY[]::text[]

> I wonder whether we are also interested in catching CAST(), e.g.:

> CAST(ARRAY[] AS text[])

I think you'll find that it's just about impossible to not handle both,
because they look the same after the grammar gets done.
        regards, tom lane


pgsql-hackers by date:

Previous
From: sulfinu@gmail.com
Date:
Subject: Re: String encoding during connection "handshake"
Next
From: Tom Lane
Date:
Subject: Re: PG 8.3beta3 Segmentation Fault during Database Restore