pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
To: pgsql-general@postgresql.org
Subject: Re: importing db as text files
Date: Thu, 14 Aug 2003 16:33:16 -0400
Message-ID: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AA@THOR.goeci.com> (raw)

On Wednesday, August 13, 2003 17:59, Gregory S. Williamson
[mailto:gsw@globexplorer.com] wrote:

>
>I tend to use perl to preprocess dumps (in our case from 
>Informix). It tends to work much faster than shell scripts 
>(although your mileage may vary). I have to fix missing 
>numeric values (if the column allows nulls why can't the copy 
>command accept an empty field, I wonder?)

Have you tried "copy <tbl> from stdin with null as '';" or am I missing
something?

See
http://techdocs.postgresql.org/techdocs/usingcopy.php
or the postgresql documentation for more info.

Cheers,
	Murthy



view thread (32+ messages)  latest in thread

Message-ID: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AA@THOR.goeci.com>
Permalink:  ../2D92FEBFD3BE1346A6C397223A8DD3FC0923AA@THOR.goeci.com/
Also on:    postgresql.org/message-id/2D92FEBFD3BE1346A6C397223A8DD3FC0923AA@THOR.goeci.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: murthy.kambhampaty@goeci.com
  Subject: Re: importing db as text files
  In-Reply-To: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AA@THOR.goeci.com>
  References: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AA@THOR.goeci.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