Re: [GENERAL] Empty arrays with ARRAY[]

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

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
>> 1) How should we determine whether the array is multidimensional if we
>> know the type in advance?

> Well, given the array should be regular you should be able to just look
> at the first element, if it's a array look at it's first element, etc
> to determine the dimensions. This'll be fairly quick.

How does that work with non-constant array constructor members?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Kohll 2007-11-29 21:33:38 Re: hibernate + postgresql ?
Previous Message Jennifer Spencer 2007-11-29 21:08:21 Postgres WarmStandby using ZFS or Snapshot to create Web DB?

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-11-29 21:15:04 Re: pgwin32_open returning EINVAL
Previous Message Tom Lane 2007-11-29 20:59:44 Re: pgwin32_open returning EINVAL

Browse pgsql-patches by date

  From Date Subject
Next Message Kris Jurka 2007-11-29 22:02:11 Re: Re: [HACKERS] [GENERAL] plperl and regexps with accented characters - incompatible?
Previous Message Gregory Stark 2007-11-29 20:22:55 Re: [DOCS] Partition: use triggers instead of rules