Please rename split(text,text,int) to splitpart

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Please rename split(text,text,int) to splitpart
Дата
Msg-id 1031211053.17163.9.camel@taru.tm.ee
обсуждение исходный текст
Ответы Re: Please rename split(text,text,int) to splitpart  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
It seems that my last mail on this did not get through to the list ;(



Please consider renaming the new builtin function 
 split(text,text,int)

to something else, perhaps
 split_part(text,text,int)

(like date_part)

The reason for this request is that 3 most popular scripting languages
(perl, python, php) all have also a function with similar signature, but
returning an array instead of single element and the (optional) third
argument is limit (maximum number of splits to perform)

I think that it would be good to have similar function in (some future
release of) postgres, but if we now let in a function with same name and
arguments but returning a single string instead an array of them, then
we will need to invent a new and not so easy to recognise name for the
"real" split function.

----------------
Hannu



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: I am done
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: contrib/tsearch