pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Biswa Ranjan Dash <BD00617837@TechMahindra.com>
To: Guntry Vinod <GV00619735@TechMahindra.com>
To: Matthias Apitz <guru@unixarea.de>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: ravikrishna@mail.com <ravikrishna@mail.com>
Cc: Venkatamurali Krishna Gottuparthi <VG00114307@TechMahindra.com>
Subject: RE: Back Slash \ issue
Date: Fri, 3 May 2019 09:16:21 +0000
Message-ID: <78df4bf928bd4581a506be8f6332e110@BLREXCHMBX002.TechMahindra.com> (raw)
In-Reply-To: <9e479169df4f4026bcfe584f69f21492@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>
	<1989ca98-23e4-21c2-addd-1710ad78cbf7@aklaver.com>
	<f402601ecb4443ab85ef5f7fc0d4aade@HYDEXCHMBX003.TechMahindra.com>
	<87h8achsx2.fsf@news-spur.riddles.org.uk>
	<dafc4802660b4746b9c96b7a576b5162@HYDEXCHMBX003.TechMahindra.com>
	<20190503090151.GA9546@sh4-5.1blu.de>
	<9e479169df4f4026bcfe584f69f21492@HYDEXCHMBX003.TechMahindra.com>

Team,

We had also tried importing the data by converting the data to a CSV file using 

\copy TABLE_NAME FROM 'G:\DB_Backup\FILE.csv' (format csv, null '\N'); 

Regards,
Biswa

-----Original Message-----
From: Guntry Vinod <GV00619735@TechMahindra.com> 
Sent: Friday, May 3, 2019 2:35 PM
To: Matthias Apitz <guru@unixarea.de>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>; pgsql-general@postgresql.org; Adrian Klaver <adrian.klaver@aklaver.com>; ravikrishna@mail.com; Venkatamurali Krishna Gottuparthi <VG00114307@TechMahindra.com>; Biswa Ranjan Dash <BD00617837@TechMahindra.com>
Subject: RE: Back Slash \ issue

The postgre is running on Windows platform.

-----Original Message-----
From: Matthias Apitz <guru@unixarea.de> 
Sent: Friday, May 3, 2019 2:32 PM
To: Guntry Vinod <GV00619735@TechMahindra.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>; pgsql-general@postgresql.org; Adrian Klaver <adrian.klaver@aklaver.com>; ravikrishna@mail.com; Venkatamurali Krishna Gottuparthi <VG00114307@TechMahindra.com>; Biswa Ranjan Dash <BD00617837@TechMahindra.com>
Subject: Re: Back Slash \ issue

El día Friday, May 03, 2019 a las 08:45:02AM +0000, Guntry Vinod escribió:

> Hi Andrew,
> 
> So you mean to say we need to replace \\ in data. If so the data what we receive is huge chunk(we cannot open in notepad++ also) .
> 
> ...

Hi Guntry,

What about piping the data on a Linux or any other UNIX (or even Cygwin on Windows) through a sed-Kommand to do the necessary changes, like

echo 'bla\foo' | sed 's/\\/\\\\/'
bla\\foo

	matthias
--
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub
70 years of NATO - 70 years of wars (Jugoslavia, Afghanistan, Syria, ...) and 70 years of war preparation against Russia.  -- PEACE instead of NATO !
============================================================================================================================

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: <78df4bf928bd4581a506be8f6332e110@BLREXCHMBX002.TechMahindra.com>
Permalink:  ../78df4bf928bd4581a506be8f6332e110@BLREXCHMBX002.TechMahindra.com/
Also on:    postgresql.org/message-id/78df4bf928bd4581a506be8f6332e110@BLREXCHMBX002.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: BD00617837@TechMahindra.com, GV00619735@TechMahindra.com, guru@unixarea.de, andrew@tao11.riddles.org.uk, adrian.klaver@aklaver.com, ravikrishna@mail.com, VG00114307@TechMahindra.com
  Subject: Re: Back Slash \ issue
  In-Reply-To: <78df4bf928bd4581a506be8f6332e110@BLREXCHMBX002.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> <1989ca98-23e4-21c2-addd-1710ad78cbf7@aklaver.com> <f402601ecb4443ab85ef5f7fc0d4aade@HYDEXCHMBX003.TechMahindra.com> <87h8achsx2.fsf@news-spur.riddles.org.uk> <dafc4802660b4746b9c96b7a576b5162@HYDEXCHMBX003.TechMahindra.com> <20190503090151.GA9546@sh4-5.1blu.de> <9e479169df4f4026bcfe584f69f21492@HYDEXCHMBX003.TechMahindra.com> <78df4bf928bd4581a506be8f6332e110@BLREXCHMBX002.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