From: expect <expect@ihubbell.com>
To: pgsql-general@postgresql.org
Subject: Re: importing db as text files
Date: Wed, 13 Aug 2003 20:45:55 -0700
Message-ID: <20030813204555.755edd6b.expect@ihubbell.com> (raw)
In-Reply-To: <20030813213004.GA27062@wolff.to>
References: <20030813141420.1db05267.expect@ihubbell.com>
<20030813213004.GA27062@wolff.to>
On Wed, 13 Aug 2003 16:30:04 -0500
Bruno Wolff III <bruno@wolff.to> wrote:
> On Wed, Aug 13, 2003 at 14:14:20 -0700,
> expect <expect@ihubbell.com> wrote:
> >
> > What's the big deal with importing text files? I have a 70 MB file to import
> > and it's been one problem after another. I used the copy command and it appears
> > that it's just not possible. I finally massaged the file into a .sql file and
>
> That is unlikely, but without more details it is hard to say what you need
> to do.
What's unlikely? That it didn't work? But it didn't work.
>
> > ran that using \i db.sql but that failed too because I overlooked ' in names
> > like D'Adario. The other problem I encountered was that a numeric field had
> > to have data in it, pg would not default to the default value. So instead of
>
> You can use the keyword default in insert statements to get a default value.
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: expect@ihubbell.com
Subject: Re: importing db as text files
In-Reply-To: <20030813204555.755edd6b.expect@ihubbell.com>
References: <20030813141420.1db05267.expect@ihubbell.com> <20030813213004.GA27062@wolff.to> <20030813204555.755edd6b.expect@ihubbell.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