pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stef <svb@ucs.co.za>
Cc: pgsql-admin@postgresql.org
Subject: Re: Bad dumps...
Date: Tue, 13 Jul 2004 10:24:36 -0400
Message-ID: <15686.1089728676@sss.pgh.pa.us> (raw)
In-Reply-To: <20040713124000.49a556a0@svb.ucs.co.za>
References: <5.1.0.14.0.20040709093611.05621ea0@mailserver.dmr.co.uk>
	<20040709095738.5738334f@svb.ucs.co.za>
	<5.1.0.14.0.20040709093611.05621ea0@mailserver.dmr.co.uk>
	<5.1.0.14.0.20040709122158.055ac630@mailserver.dmr.co.uk>
	<20040709161641.3e164d8f@svb.ucs.co.za>
	<1089429340.10763.10.camel@localhost.localdomain>
	<20040712095203.333c8aa2@svb.ucs.co.za>
	<20040713124000.49a556a0@svb.ucs.co.za>

Stef <svb@ucs.co.za> writes:
> I found that it was actually a '\\N' value only that causes
> dumps to dump successfully, but fail on import (When using COPY),
> because both '\N' and '\\N' are seen as null by the COPY statement.

This is demonstrably not so.  You might have trouble with data coming
from somewhere else, if the source doesn't understand the quoting rules
for COPY data.  But I can dump and restore a table containing '\N' and
variants of that without any trouble.

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <15686.1089728676@sss.pgh.pa.us>
Permalink:  ../15686.1089728676@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15686.1089728676@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, svb@ucs.co.za
  Subject: Re: Bad dumps...
  In-Reply-To: <15686.1089728676@sss.pgh.pa.us>
  References: <5.1.0.14.0.20040709093611.05621ea0@mailserver.dmr.co.uk> <20040709095738.5738334f@svb.ucs.co.za> <5.1.0.14.0.20040709122158.055ac630@mailserver.dmr.co.uk> <20040709161641.3e164d8f@svb.ucs.co.za> <1089429340.10763.10.camel@localhost.localdomain> <20040712095203.333c8aa2@svb.ucs.co.za> <20040713124000.49a556a0@svb.ucs.co.za> <15686.1089728676@sss.pgh.pa.us>

* 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