Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 94DF31337B5D for ; Tue, 11 Jan 2011 12:16:14 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 16760-03 for ; Tue, 11 Jan 2011 16:16:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 18836133798E for ; Tue, 11 Jan 2011 12:16:06 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0BGG56t018909; Tue, 11 Jan 2011 11:16:05 -0500 (EST) To: "Splitting string into char array with string_to_array" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5831: Splitting string into char array with string_to_array does not work In-reply-to: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org> References: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org> Comments: In-reply-to "Splitting string into char array with string_to_array" message dated "Tue, 11 Jan 2011 15:44:48 +0000" Date: Tue, 11 Jan 2011 11:16:05 -0500 Message-ID: <18908.1294762565@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/79 X-Sequence-Number: 29101 "Splitting string into char array with string_to_array" 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