Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl5cc-0006nK-1B for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Nov 2013 23:31:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vl5cb-0000za-HR for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Nov 2013 23:31:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl5ca-0000zU-Tn for pgsql-bugs@postgresql.org; Mon, 25 Nov 2013 23:31:16 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl5cX-0000ua-8M for pgsql-bugs@postgresql.org; Mon, 25 Nov 2013 23:31:16 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Vl5cV-0004zR-8G for pgsql-bugs@postgresql.org; Mon, 25 Nov 2013 15:31:11 -0800 Date: Mon, 25 Nov 2013 15:31:11 -0800 (PST) From: David Johnston To: pgsql-bugs@postgresql.org Message-ID: <1385422271248-5780248.post@n5.nabble.com> In-Reply-To: References: Subject: Re: Concat truncates at 257 characters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org More details please. > The problem is that the concat and || are truncating the result. No, that is not the case: select length(cast( rpad('', 200, 'A')::text || rpad('', 200, 'B')::text as text )) -- output -> 400 SELECT length(repeat('a', 50) || repeat('b', 200) || repeat('c', 100)) -- output -> 350 > My automated database unit tests compare the actual result to the expected > result then provides a pass or fail status. So some client-side interface is where the problem resides. It is trying to output more user-friendly content for extra-long strings. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Concat-truncates-at-257-characters-tp5780244p5780248.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs