From: Tom Lane <tgl@sss.pgh.pa.us>
To: Splitting string into char array with string_to_array <valgog@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5831: Splitting string into char array with string_to_array does not work
Date: Tue, 11 Jan 2011 11:16:05 -0500
Message-ID: <18908.1294762565@sss.pgh.pa.us> (raw)
In-Reply-To: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org>
References: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org>
"Splitting string into char array with string_to_array" <valgog@gmail.com> writes:
> I cannot really remember now for sure, but the splitting string into array
> using an empty string ('') worked for me on pre-9.0 versions to get array of
> string chars.
Really? I get this in all versions since 7.4, where string_to_array was
introduced:
regression=# select string_to_array('ab', '' );
string_to_array
-----------------
{ab}
(1 row)
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, valgog@gmail.com
Subject: Re: BUG #5831: Splitting string into char array with string_to_array does not work
In-Reply-To: <18908.1294762565@sss.pgh.pa.us>
References: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org> <18908.1294762565@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox