From: | Joel Burton <joel(at)joelburton(dot)com> |
---|---|
To: | Steve Crawford <scrawford(at)pinpointresearch(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Arrays: determining size |
Date: | 2002-12-02 18:26:30 |
Message-ID: | 20021202182630.GA12713@temp.joelburton.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Dec 02, 2002 at 09:58:42AM -0800, Steve Crawford wrote:
> Given a variable length array data type in a table:
> create table foo (bar text[]);
>
> and some data:
> insert into foo values ('{"a","b","c"'});
> insert into foo values ('{"1","2","3","4"}');
>
> Is there a simple way to determe the size of each array?
In contrib/intarray (excellent, BTW), there are features for sizing and
matching integer arrays. Possibly you can either stick with integer
arrays, or adapt the code to non-integer cases.
Would be great if someone would modify all of intarray for text[] -- I'd
love to use the matching language on some projects!
- J.
--
Joel BURTON | joel(at)joelburton(dot)com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant
From | Date | Subject | |
---|---|---|---|
Next Message | Felipe Schnack | 2002-12-02 18:27:53 | Re: RPMS for 7.3 |
Previous Message | Bruce Momjian | 2002-12-02 18:23:38 | Re: ALTER TABLE & COLUMN |