From: David Johnston <polobo@yahoo.com>
To: pgsql-bugs@postgresql.org
Subject: Re: Concat truncates at 257 characters
Date: Mon, 25 Nov 2013 15:31:11 -0800 (PST)
Message-ID: <1385422271248-5780248.post@n5.nabble.com> (raw)
In-Reply-To: <CADMm_6AakPuWNbRLKvj6LjkdSyc7r=NKLd5Q0x36itCMRp2phA@mail.gmail.com>
References: <CADMm_6AakPuWNbRLKvj6LjkdSyc7r=NKLd5Q0x36itCMRp2phA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: polobo@yahoo.com
Subject: Re: Concat truncates at 257 characters
In-Reply-To: <1385422271248-5780248.post@n5.nabble.com>
References: <CADMm_6AakPuWNbRLKvj6LjkdSyc7r=NKLd5Q0x36itCMRp2phA@mail.gmail.com> <1385422271248-5780248.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox