Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gk1b5-00022V-Fl for pgsql-general@arkaria.postgresql.org; Thu, 17 Jan 2019 06:56:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gk1b4-0005MM-7A for pgsql-general@arkaria.postgresql.org; Thu, 17 Jan 2019 06:56:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gk1b3-0005MD-Qz for pgsql-general@lists.postgresql.org; Thu, 17 Jan 2019 06:56:13 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gk1b0-0006Yt-H1 for pgsql-general@postgresql.org; Thu, 17 Jan 2019 06:56:12 +0000 Received: from [192.168.127.1] (port=43655 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gk1ax-0007ZN-23; Thu, 17 Jan 2019 06:56:07 +0000 Received: from [127.0.0.1] (port=24746 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gk1aw-000F2K-DI; Thu, 17 Jan 2019 06:56:06 +0000 From: Andrew Gierth To: "Egashira\, Yusuke" Cc: "'pgsql-general\@postgresql.org'" Subject: Re: Question about array_to_string()'s behavior and the behavior might be changed in the future or not In-Reply-To: <848B1649C8A6274AA527C4472CA11EDD5FA87F88@G01JPEXMBYT02> (Yusuke Egashira's message of "Thu, 17 Jan 2019 06:50:30 +0000") Message-ID: <87munzixk4.fsf@news-spur.riddles.org.uk> References: <848B1649C8A6274AA527C4472CA11EDD5FA87F88@G01JPEXMBYT02> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Thu, 17 Jan 2019 06:56:06 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Egashira" == Egashira, Yusuke writes: Egashira> Hi, Egashira> I have a question about array_to_string(). Egashira> I think array_to_string() concatenates always array elements Egashira> from the "beginning" of the array elements and this rule will Egashira> not be changed on the future minor releases. Egashira> Is my understanding correct? The order of elements in the original array will always be preserved in the string output, yes. Egashira> For example, I understand that array_to_string() "never" Egashira> output like following result now and in the future, is my Egashira> understanding correct? Yes. -- Andrew (irc:RhodiumToad)