Re: Open 7.3 items - Mailing list pgsql-hackers

From Joe Conway
Subject Re: Open 7.3 items
Date
Msg-id 3D5B463C.6050500@joeconway.com
Whole thread Raw
In response to Re: Open 7.3 items  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Hannu Krosing wrote:
> What about functions
> 
> 1. split(text,text,int) returns text
> 
> 2. split(text,text) returns text[]
> 
> and why not
> 
> 3. split(text,text,text) returns text
> 
> which returns text from $1 delimited by $2 and $3

Given the time remaining before beta, I'll be happy just to get #1 done.

I can see the utility of #2 (or perhaps even a table function which 
breaks the string into individual rows). I'm not sure I understand #3.

I am concerned about the name though -- only in that there are usually 
objections raised to function names that are too likely to conflict with 
user created function names. But "split" is good from the standpoint 
that it is used in other languages, so people should find it familiar.

Anyone have comments on the name?

Joe



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug with CREATE CONSRAINT TRIGGER and attisdropped
Next
From: Mike Mascari
Date:
Subject: Re: Open 7.3 items