From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hannu Krosing <hannu(at)tm(dot)ee>, "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: SQL99 ARRAY support proposal |
Date: | 2003-03-13 04:01:57 |
Message-ID: | 3E7002B5.2090507@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Peter Eisentraut wrote:
> Joe Conway writes:
>
>>2) Implement the following new builtin functions
>> array_push(anyarray, anyelement) returns anyarray
>> array_pop(anyarray) returns anyelement
>> array_subscript(anyarray, int) yields anyelement
>> singleton_array(anyelement) returns anyarray
>> - any reason not to call this one simply "array"?
>> split(text, text) returns text[]
>> - split string into array on delimiter
>> implode(text[], text) returns text
>> - join array elements into a string using given string delimiter
> I think this goes too far. It is just an invitation to people to create
> bad database designs by using arrays as lists. Create an array support
> package on gborg if you like, but I feel this should not be in the
> mainline.
>
Sorry, I don't agree with that assessment. There are lots of ways people
can create bad database designs using the CREATE TABLE statement too ;-)
Arrays *do* have a place, and they are supported in SQL99+. We get
complaints almost daily regarding the poor array support -- this is just
a step toward improving that. If you want to debate the merit of
individual functions on that list, let's do that, but to dismiss them
all with a wave-of-the-hand is too far.
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Sailesh Krishnamurthy | 2003-03-13 04:43:21 | Re: some more docbook help |
Previous Message | Joe Conway | 2003-03-13 03:48:46 | Re: bug in setval? |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2003-03-13 05:34:33 | Re: [HACKERS] SQL99 ARRAY support proposal |
Previous Message | Peter Eisentraut | 2003-03-13 01:23:09 | Re: SQL99 ARRAY support proposal |