Re: Adding on to the end of an array - Mailing list pgsql-general

From Ryan Mahoney
Subject Re: Adding on to the end of an array
Date
Msg-id 02e501c273bb$0f911480$8201a8c0@root
Whole thread Raw
In response to Adding on to the end of an array  (Matthew C Forman <mcf@dmu.ac.uk>)
List pgsql-general
Get the current postgres beta and read the new intarray docs, the
functionality you need is there!

-r

----- Original Message -----
From: "Matthew C Forman" <mcf@dmu.ac.uk>
To: <pgsql-general@postgresql.org>
Sent: Monday, October 14, 2002 3:46 PM
Subject: [GENERAL] Adding on to the end of an array


>
> Hi all,
>
> I'm very new to PostgreSQL, but this doesn't seem to be in the FAQs, and
> I can't find anything 'out there'...
>
> I moved to pgsql because of its array support. I need to be able to append
> an element on to an existing array _without knowing its current length_.
> I thought that I may be able to find out the length of an array and then
> construct a subscript for the next (currently non-existent) element by
> just adding 1, but... array_dims() doesn't seem to give easily useable
> output.
>
> Does anyone have any idea on this?
>
> Thanks in advance,
> Matthew
>
> --
> Dr. Matthew C. Forman                   mcf@dmu.ac.uk
> School of Engineering & Technology
> De Montfort University, Leicester, UK.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


pgsql-general by date:

Previous
From: Sébastien Lardière
Date:
Subject: Re: Rép. : [GENERAL] Advocacy s
Next
From: Tom Lane
Date:
Subject: Re: Postgres-based system to run .org registry?