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 1hMEqC-0005OO-LD for pgsql-general@arkaria.postgresql.org; Thu, 02 May 2019 16:45:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMEqA-00056l-Nw for pgsql-general@arkaria.postgresql.org; Thu, 02 May 2019 16:45:46 +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 1hMDUZ-00014i-ND for pgsql-general@lists.postgresql.org; Thu, 02 May 2019 15:19:23 +0000 Received: from tmghyd2.techmahindra.com ([119.151.17.192]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMDUV-0006vc-A0 for pgsql-general@postgresql.org; Thu, 02 May 2019 15:19:22 +0000 X-Disclaimer: true IronPort-PHdr: =?us-ascii?q?9a23=3ArWbUZBEvq1KEKYbxPRKYd51GYnF86YWxBRYc798d?= =?us-ascii?q?s5kLTJ76psy9bnLW6fgltlLVR4KTs6sC17OP9f6xEjxQqb+681k6OKRWUBEEjc?= =?us-ascii?q?hE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRo?= =?us-ascii?q?LerpBIHSk9631+ev8JHPfglEnjWwba5vIBmsrAjcssYajIhhJ60s1hbHv3xEdv?= =?us-ascii?q?hMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTD?= =?us-ascii?q?QhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlT?= =?us-ascii?q?wKPCAl/m7JlsNwjbpboBO/qBx5347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C8roVQLFZdqJUFGm?= =?us-ascii?q?Qs66ATE+VNI+3cQOY195G9m4iRDDxSWqUPcpkOmiCIY1+6SU/Hz4OctngyLP2L?= =?us-ascii?q?Mghl9gQc9GK2C8rqd88wHNCpSPmEKcweLiP74Vwi/O7maYzWyHlERRUQo2WqLA?= =?us-ascii?q?FzhLfELIrNfj51jCSbaGDL0mNk1KzsvUeYVQbdi8okhAWO3ycOrfZWW90zOfO0?= =?us-ascii?q?7QmOrdM9G3U1kQ1yX4AUgFlQwJ9DCNMg1oVXTpmH7XEDE7TQGnWEjr6+Qr7Srj?= =?us-ascii?q?FkI=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GZAAA0Cctc/6KCNQplGgEBAQEBAgEBA?= =?us-ascii?q?QEHAgEBAQGBZUSDYgqXbgaBNYlMkH8QhG0Chlc4EwEDAQEFAQEBAQIBAQKBEYI?= =?us-ascii?q?6KQGCZwEBAQQ6PxACAQgNBAQBAQEeEDIdCAEBBAENBQgThHIDCaprhFMah2QVV?= =?us-ascii?q?YFFgTKBXop9gQeEIz6EJAEBhgAEgS0BAQGRBJQLZAEGAgGCC5AUgiQjgg6GPIN?= =?us-ascii?q?ZA4kbjBaQV4Q0gWaBeDMaI4FugU6QUXKSGoEigSEBAQ?= X-IPAS-Result: =?us-ascii?q?A2GZAAA0Cctc/6KCNQplGgEBAQEBAgEBAQEHAgEBAQGBZUS?= =?us-ascii?q?DYgqXbgaBNYlMkH8QhG0Chlc4EwEDAQEFAQEBAQIBAQKBEYI6KQGCZwEBAQQ6P?= =?us-ascii?q?xACAQgNBAQBAQEeEDIdCAEBBAENBQgThHIDCaprhFMah2QVVYFFgTKBXop9gQe?= =?us-ascii?q?EIz6EJAEBhgAEgS0BAQGRBJQLZAEGAgGCC5AUgiQjgg6GPINZA4kbjBaQV4Q0g?= =?us-ascii?q?WaBeDMaI4FugU6QUXKSGoEigSEBAQ?= X-IronPort-AV: E=Sophos;i="5.60,422,1549909800"; d="scan'208";a="151947523" Received: from unknown (HELO BLREXCHMBX002.TechMahindra.com) ([10.53.130.162]) by TMGHYD2.techmahindra.com with ESMTP/TLS/AES256-SHA256; 02 May 2019 20:49:07 +0530 Received: from HYDEXCHMBX003.TechMahindra.com (10.56.222.129) by BLREXCHMBX002.TechMahindra.com (10.53.130.162) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 2 May 2019 20:49:06 +0530 Received: from HYDEXCHMBX003.TechMahindra.com ([fe80::4c1d:fa5a:d380:e1ea]) by HYDEXCHMBX003.TechMahindra.com ([fe80::4c1d:fa5a:d380:e1ea%18]) with mapi id 15.00.1130.005; Thu, 2 May 2019 20:49:06 +0530 From: Guntry Vinod To: Adrian Klaver , "ravikrishna@mail.com" CC: "pgsql-general@postgresql.org" , Venkatamurali Krishna Gottuparthi , "Biswa Ranjan Dash" Subject: RE: Back Slash \ issue Thread-Topic: Back Slash \ issue Thread-Index: AdUA4NcC/iRC3bxaQlilJKiB5c3SvP//yTgAgAABQ4CAAGchRQ== Date: Thu, 2 May 2019 15:19:05 +0000 Message-ID: <797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com> References: ,<3f17d700-5cfb-637a-dc70-112b69e53b01@aklaver.com> In-Reply-To: <3f17d700-5cfb-637a-dc70-112b69e53b01@aklaver.com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.56.205.138] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Adrian\Kiran, = Below is the issue. = We are migrating from Db2 to Postgre. = The Db2 dump consists of back Slash \ with in the data [dump] , but postgre= is not escaping the Slash. For example if name consist of Vinod\G after the inserting the dump the val= ue in postgre is VinodG where as I need it as Vinod\G. Since the dump is huge data I can't replace \ within the data to escape Sl= ash. = We are using import utility provided by Postgre. = Can you please give me any solution in this regard?. @kiran-let me also try solution you provided in the below mail. = Regards, = Vinod _______________________________________ From: Adrian Klaver [adrian.klaver@aklaver.com] Sent: 02 May 2019 20:04 To: ravikrishna@mail.com; Guntry Vinod Cc: pgsql-general@postgresql.org; Venkatamurali Krishna Gottuparthi; Biswa = Ranjan Dash Subject: Re: Back Slash \ issue On 5/2/19 7:30 AM, ravikrishna@mail.com wrote: > > We have dump from DB2 and trying to upload it Postgre. > DB2 export command has an option to export it as CSV which quotes data > so that any embedded > lines or special characters inside the data is treated fine. Does the > csv format has quotes enclosing it ? Please show the command you use to import into Postgres. Also the error message you get. -- Adrian Klaver adrian.klaver@aklaver.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Disclaimer: This message and the information contained herein is proprieta= ry and confidential and subject to the Tech Mahindra policy statement, you = may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.= com/tim/disclaimer.html i= nternally within TechMahindra. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D