Re: proposal: support empty string as separator for string_to_array

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: proposal: support empty string as separator for string_to_array
Date: 2009-07-27 17:03:49
Message-ID: 162867790907271003n9a6a8f5wb8ff7ea51130e8a9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2009/7/27 Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>:
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>
>> I tested  implementation and it's about 30% faster than using
>> regexp.
>
> Rather than making a change which could break existing applications,
> how about a new function string_to_array(text) which returns an array
> of "char"?

yes, it was my idea too - or function "chars_to_array"

Pavel

>
> -Kevin
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-07-27 17:14:17 Re: WIP: Deferrable unique constraints
Previous Message Kevin Grittner 2009-07-27 16:55:32 Re: proposal: support empty string as separator for string_to_array