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:36:18 -0800
Message-ID: <400EC6A2.20007@joeconway.com> (raw)
In-Reply-To: <2597.1074708698@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>
Tom Lane wrote:
> The other point about pg_dump failing to correctly restore arrays with
> nondefault lower bounds is a good one, though. We need to think about
> how to fix that.
I'll put some thought into it, but note that it is hardly a new issue --
it's been possible to create an array with < 1 lower bound since well
before 7.4:
regression=# select version();
version
-----------------------------------------------------------------------
PostgreSQL 7.3.5 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2
20030222 (Red Hat Linux 3.2.2-5)
(1 row)
regression=# create table a(f1 int, f2 int[]);
CREATE TABLE
regression=# insert into a values (1,'{1,2}');
INSERT 565511 1
regression=# update a set f2[0] = 0 where f1 = 1;
UPDATE 1
regression=# select array_dims(f2) from a;
array_dims
------------
[0:2]
(1 row)
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: <400EC6A2.20007@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