pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guntry Vinod <GV00619735@TechMahindra.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: ravikrishna@mail.com <ravikrishna@mail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Venkatamurali Krishna Gottuparthi <VG00114307@TechMahindra.com>
Cc: Biswa Ranjan Dash <BD00617837@TechMahindra.com>
Subject: RE: Back Slash \ issue
Date: Thu, 2 May 2019 15:19:05 +0000
Message-ID: <797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com> (raw)
In-Reply-To: <3f17d700-5cfb-637a-dc70-112b69e53b01@aklaver.com>
References: <ad7149ce9d594ed396bebad4194e57d6@HYDEXCHMBX003.TechMahindra.com>
	<trinity-2a68e86c-51d7-41a2-8008-1a21c0850f0e-1556807412712@3c-app-mailcom-lxa07>
	<3f17d700-5cfb-637a-dc70-112b69e53b01@aklaver.com>

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. 

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
============================================================================================================================

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 <http://www.techmahindra.com/Disclaimer.html; externally http://tim.techmahindra.com/tim/disclaimer.html <http://tim.techmahindra.com/tim/disclaimer.html; internally within TechMahindra.

============================================================================================================================






view thread (31+ messages)  latest in thread

Message-ID: <797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com>
Permalink:  ../797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com/
Also on:    postgresql.org/message-id/797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com

 · 

reply

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-general@postgresql.org
  Cc: GV00619735@TechMahindra.com, adrian.klaver@aklaver.com, ravikrishna@mail.com, VG00114307@TechMahindra.com, BD00617837@TechMahindra.com
  Subject: Re: Back Slash \ issue
  In-Reply-To: <797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.com>
  References: <ad7149ce9d594ed396bebad4194e57d6@HYDEXCHMBX003.TechMahindra.com> <trinity-2a68e86c-51d7-41a2-8008-1a21c0850f0e-1556807412712@3c-app-mailcom-lxa07> <3f17d700-5cfb-637a-dc70-112b69e53b01@aklaver.com> <797cd76f5520436f87e68ebe980972d3@HYDEXCHMBX003.TechMahindra.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