From: Joe Conway <mail@joeconway.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: array_lower /array_prepend doubt
Date: Wed, 21 Jan 2004 10:47:43 -0800
Message-ID: <400EC94F.7010703@joeconway.com> (raw)
In-Reply-To: <8803.1074710460@sss.pgh.pa.us>
References: <400E85EC.4000106@trade-india.com>
<1648.1074705270@sss.pgh.pa.us>
<400EBEF0.6060005@joeconway.com>
<2597.1074708698@sss.pgh.pa.us>
<400EC6A2.20007@joeconway.com>
<8803.1074710460@sss.pgh.pa.us>
Tom Lane wrote:
> Of course; I suppose this bug goes back to Berkeley days. We just
> hadn't recognized it before (or at least I hadn't).
>
Neither had I. But the changes in 7.4 probably make it more likely
people will bump into this as a problem.
Without looking to confirm, I believe SQL99 defines an array as always
having a lower bound of 1, making our behavior an extension to the
standard. We may need another extension to the array literal syntax in
order to deal with this. I'll report back after I've had some time to
study it.
Joe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mail@joeconway.com, tgl@sss.pgh.pa.us, mallah@trade-india.com
Subject: Re: array_lower /array_prepend doubt
In-Reply-To: <400EC94F.7010703@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox