Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group