pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Frank Morton <fmorton@base2inc.com>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Slow Inserts Again
Date: Mon, 3 May 1999 17:27:25 +0300
Message-ID: <l03130306b35361d4928b@[147.233.159.109]> (raw)
In-Reply-To: <06da01be956e$a58ee860$8355e5ce@base2inc.com>

At 17:10 +0300 on 03/05/1999, Frank Morton wrote:


> Is there a doc somewhere about what characters are treated
> in some special way when doing a copy?

Yes, the documentation of the COPY command. The essence is that if you use
the default delimiter (tab), you need to put a backslash before each tab,
newline and backslash in each of the text fields. Oh, and null fields
should be converted to \N.

It's all in the docs. Why don't you try to copy some of the rows into a
temporary table, and dump that table using pg_dump -a -t table_name dbname?
It may give you a clue.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (16+ messages)  latest in thread

Message-ID: <l03130306b35361d4928b@[147.233.159.109]>
Permalink:  ../l03130306b35361d4928b@%5B147.233.159.109%5D/
Also on:    postgresql.org/message-id/l03130306b35361d4928b@[147.233.159.109]

 · 

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-sql@postgresql.org
  Cc: herouth@oumail.openu.ac.il, fmorton@base2inc.com, pgsql-sql@hub.org
  Subject: Re: [SQL] Slow Inserts Again
  In-Reply-To: <l03130306b35361d4928b@[147.233.159.109]>
  References: <06da01be956e$a58ee860$8355e5ce@base2inc.com> <l03130306b35361d4928b@[147.233.159.109]>

* 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