Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6877D1337B7D for ; Fri, 28 Jan 2011 10:45:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 73125-09 for ; Fri, 28 Jan 2011 14:45:46 +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 B26521337B77 for ; Fri, 28 Jan 2011 10:45:45 -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 p0SEjjLW078868 for ; Fri, 28 Jan 2011 14:45:45 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p0SEjjdN078867; Fri, 28 Jan 2011 14:45:45 GMT (envelope-from www) Date: Fri, 28 Jan 2011 14:45:45 GMT Message-Id: <201101281445.p0SEjjdN078867@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5854: base64 decode returns bytea and no text From: "Chris R." Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201101/234 X-Sequence-Number: 29256 The following bug has been logged online: Bug reference: 5854 Logged by: Chris R. Email address: chricki@gmx.net PostgreSQL version: 9.02 Operating system: CentOS 5.5 Description: base64 decode returns bytea and no text Details: There is a break in how pg9.0 handles decoding base64 encoded data. With PostgreSQL 8.4: select decode(encode('abc', 'base64'), 'base64'); decode ---------- \x616263 With PostgreSQL 9.0: select decode(encode('abc', 'base64'), 'base64'); decode ---------- \x616263 To get the old result, convert_from helps out: select convert_from(decode(encode('abc', 'base64'), 'base64'), 'UTF8'); Still, shouldn't this be consistent with 8.x and 9.x?