From: | "Ryan Mahoney" <ryan(at)paymentalliance(dot)net> |
---|---|
To: | "Matthew C Forman" <mcf(at)dmu(dot)ac(dot)uk>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Adding on to the end of an array |
Date: | 2002-10-14 19:51:16 |
Message-ID: | 02e501c273bb$0f911480$8201a8c0@root |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)dmu(dot)ac(dot)uk>
To: <pgsql-general(at)postgresql(dot)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(at)dmu(dot)ac(dot)uk
> School of Engineering & Technology
> De Montfort University, Leicester, UK.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-10-14 20:56:46 | Re: [GENERAL] Postgres-based system to run .org registry? |
Previous Message | Sébastien Lardière | 2002-10-14 19:50:10 | Re: Rép. : [GENERAL] Advocacy s |