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 1hMDci-0000HG-DV for pgsql-general@arkaria.postgresql.org; Thu, 02 May 2019 15:27:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMDcg-000224-9Q for pgsql-general@arkaria.postgresql.org; Thu, 02 May 2019 15:27:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMDce-00020a-OI for pgsql-general@lists.postgresql.org; Thu, 02 May 2019 15:27:46 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMDcZ-0008De-QZ for pgsql-general@postgresql.org; Thu, 02 May 2019 15:27:44 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 10DB479E; Thu, 2 May 2019 11:27:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 02 May 2019 11:27:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=n ymtSv2rHEVE9lvuFhR5Y46Pws+NOZ+kIKgE6miZDCs=; b=Ydyb8UxsEYQM3ze87 0TXuZZr+zHiWCPhRMNwr5yxa7OvRvh1XSm+tTcSIF2WSbiuIHVIXIHDIZLUnq9Di A8/rbAaD3em/R+1fdysPllky2/poHB+5lwfwjDDJPKw6aG33FyKroiWIYlyzbVeb U21yIsAvl0K7hcU9E/xaKVb19512bH2qS0+4AoN3CrYMQrN3BLizpJz/InsMhPDJ H0PnhnMhzMWoky5M7wbFcyLDfbibMSacF4yeUYejWTzDrPEJrIkI32hmnhAxVIl2 Ol374MvODTISoEi4LuSkhYQO9z2njH7SPobmn/E8HTEGz0NntI04KivReCgPboUk fnT4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=nymtSv2rHEVE9lvuFhR5Y46Pws+NOZ+kIKgE6miZD Cs=; b=6qzT6paq/gkTHxOgI5r8/XY3PB2mMfN6LrVA+bXv6R08eAt0nXfsMu6aV kextJA+XXAtx+lmwgx/FSdFoBLFdZGQxxFtLCjdlNyKKKcGS/oByzBHZM0q1XTWI k+ei/i+3FG9JrKF+sEm8BJpdxxA4YNMOLhjbsIQ8mEbSLduvV5UAujEZ6j5mEnB1 WGEaBwJ3QQ7UvURm4Y+5bgj1QaKIugCkLuePi//OXKxjw+A7hhHGnt1brYffrrJT 9LqGZnnP9YVeme3APDaSx8ZSqKC4FbS3pAj8w7nCPlVruKZnk1WDArj72oGzNCdW /QyEcnMLxPxIYb6GYORiPBpjHBjog== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrieelgdeludcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehtvggthhhmrghhihhnughrrgdrtghomhenucfkphepjedurddv uddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkh hlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 396C3E4544; Thu, 2 May 2019 11:27:35 -0400 (EDT) Subject: Re: Back Slash \ issue To: Guntry Vinod , "ravikrishna@mail.com" Cc: "pgsql-general@postgresql.org" , Venkatamurali Krishna Gottuparthi , Biswa Ranjan Dash References: <3f17d700-5cfb-637a-dc70-112b69e53b01@aklaver.com> <797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com> From: Adrian Klaver Message-ID: <1989ca98-23e4-21c2-addd-1710ad78cbf7@aklaver.com> Date: Thu, 2 May 2019 08:27:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/2/19 8:19 AM, Guntry Vinod wrote: > 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 value 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 Slash. > > We are using import utility provided by Postgre. Are you talking about COPY or some other utility? > > Can you please give me any solution in this regard?. In order for a solution to be found we will need more explicit information on what you are doing. > > @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 > ============================================================================================================================ > > Disclaimer: This message and the information contained herein is proprietary 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 internally within TechMahindra. > > ============================================================================================================================ > > -- Adrian Klaver adrian.klaver@aklaver.com