Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgKqB-0007fs-5W for pgsql-docs@arkaria.postgresql.org; Sun, 27 Sep 2015 22:54:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZgKqA-0007lj-6R for pgsql-docs@arkaria.postgresql.org; Sun, 27 Sep 2015 22:54:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgKq9-0007lc-Q2 for pgsql-docs@postgresql.org; Sun, 27 Sep 2015 22:54:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgKq6-0002XD-7f for pgsql-docs@postgresql.org; Sun, 27 Sep 2015 22:54:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8RMsZ4p012250; Sun, 27 Sep 2015 18:54:36 -0400 From: Tom Lane To: "David G. Johnston" cc: "pgsql-docs@postgresql.org" Subject: Re: Annoying "split to array" function inconsistency...best way to fix? In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Sun, 27 Sep 2015 10:49:01 -0400" Date: Sun, 27 Sep 2015 18:54:35 -0400 Message-ID: <12249.1443394475@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org "David G. Johnston" writes: > Two functions exists that convert "text" to "text[]" > regexp_string_to_array(text, text [,text]) : > http://www.postgresql.org/docs/9.4/interactive/functions-string.html > string_to_array(text, text [, text]) : > http://www.postgresql.org/docs/9.4/interactive/functions-array.html > Would it be hateful to make it so that both entries appear on both tables? > array_to_string(anyarray, text [,text]) could be lumped in with this as > well. > string_to_array not being on the string functions page is the more glaring > omission for me. I am not excited about the idea of documenting functions twice; that would almost certainly lead to the redundant entries getting out of sync. We could possibly decide that string_to_array and array_to_string are primarily string functions not array functions, and just move them to the string-functions page. Another possibility is to just add cross-references to the string-functions page, like the existing one for string_agg(). But I think I like the first idea better, in view of regexp_string_to_array already being here. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs