pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
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 13:11:38 -0500
Message-ID: <2597.1074708698@sss.pgh.pa.us> (raw)
In-Reply-To: <400EBEF0.6060005@joeconway.com>
References: <400E85EC.4000106@trade-india.com>
	<1648.1074705270@sss.pgh.pa.us>
	<400EBEF0.6060005@joeconway.com>

Joe Conway <mail@joeconway.com> writes:
> Tom Lane wrote:
>> Because array_prepend keeps the subscripts of the existing array
>> elements the same.  This was discussed during development of the
>> code, but I don't see anything in the documentation that mentions it.

> It could perhaps be added to the "Functions and Operators" page for 
> arrays, but it is mentioned here:
> http://www.postgresql.org/docs/current/static/arrays.html#AEN5183

Ah.  I was looking at the mentions of array_prepend() ... but of course
the manual also says that you should use the || operator instead ...
so I guess this mention is sufficient.

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.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <2597.1074708698@sss.pgh.pa.us>
Permalink:  ../2597.1074708698@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2597.1074708698@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, mail@joeconway.com, mallah@trade-india.com
  Subject: Re: array_lower /array_prepend doubt
  In-Reply-To: <2597.1074708698@sss.pgh.pa.us>

* 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