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 1gdzby-0002eT-VO for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Dec 2018 15:36: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 1gdzbx-0005Ye-D7 for pgsql-bugs@arkaria.postgresql.org; Mon, 31 Dec 2018 15:36:13 +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 1gdzbx-0005YX-3w for pgsql-bugs@lists.postgresql.org; Mon, 31 Dec 2018 15:36:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gdzbu-0002A0-Kn for pgsql-bugs@lists.postgresql.org; Mon, 31 Dec 2018 15:36:11 +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 wBVFa6jR003881; Mon, 31 Dec 2018 10:36:07 -0500 From: Tom Lane To: binduharikrishnanv@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15569: decode function is not correclty working in 10.6 In-reply-to: <15569-e040513fbbdecb8f@postgresql.org> References: <15569-e040513fbbdecb8f@postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Mon, 31 Dec 2018 03:29:30 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3879.1546270566.1@sss.pgh.pa.us> Date: Mon, 31 Dec 2018 10:36:06 -0500 Message-ID: <3880.1546270566@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > I was using postgres 9.4 version. Currenly I chnaged to version 10.6. I > stored image as bytea datatype . For this purpose I used > decode('','base64') while insert an image into a table. This code is > working in version 9.4. But when I used the same function in version 10.6 it > return different result. Kindly please help me to over come this issue You're not likely to get useful help without being a lot more specific. In a quick test I don't see any difference in the behavior of decode() since 9.4, so please show a concrete case where it behaves differently. One possibility is that it's actually giving the same bytea output, but it looks different because you have bytea_output set differently in the two installations. regards, tom lane