Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B51861337B93 for ; Tue, 11 Jan 2011 11:44:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 81433-05 for ; Tue, 11 Jan 2011 15:44:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 10DFC1337B90 for ; Tue, 11 Jan 2011 11:44:47 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p0BFim2E087274 for ; Tue, 11 Jan 2011 15:44:48 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p0BFimF1087272; Tue, 11 Jan 2011 15:44:48 GMT (envelope-from www) Date: Tue, 11 Jan 2011 15:44:48 GMT Message-Id: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5831: Splitting string into char array with string_to_array does not work From: "Splitting string into char array with string_to_array" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201101/78 X-Sequence-Number: 29100 The following bug has been logged online: Bug reference: 5831 Logged by: Splitting string into char array with string_to_array Email address: valgog@gmail.com PostgreSQL version: 9.0.1 Operating system: Ubuntu/Linaro 4.4.4-14ubuntu5 Description: Splitting string into char array with string_to_array does not work Details: Hi, 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. Now I have the following behavior: postgres=# select string_to_array('ab', '' ), regexp_split_to_array('ab', '' ); string_to_array │ regexp_split_to_array ─────────────────┼───────â ”€─────────────── {ab} │ {a,b} (1 row) Why an empty string given as a separator to string_to_array is not splitting the string at all?