Re: [GENERAL] Empty arrays with ARRAY[]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brendan Jurd" <direvus(at)gmail(dot)com>
Cc: "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] Empty arrays with ARRAY[]
Date: 2007-11-27 15:56:01
Message-ID: 21455.1196178961@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

"Brendan Jurd" <direvus(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Chille 2007-11-27 16:22:57 Re: autovacuum process blocks without reporting a deadlock
Previous Message Brendan Jurd 2007-11-27 15:52:17 Re: [GENERAL] Empty arrays with ARRAY[]

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-11-27 15:59:59 Re: PG 8.3beta3 Segmentation Fault during Database Restore
Previous Message sulfinu 2007-11-27 15:55:09 Re: String encoding during connection "handshake"

Browse pgsql-patches by date

  From Date Subject
Next Message Brendan Jurd 2007-11-27 16:32:27 Re: [GENERAL] Empty arrays with ARRAY[]
Previous Message Brendan Jurd 2007-11-27 15:52:17 Re: [GENERAL] Empty arrays with ARRAY[]