pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: EXPORT / IMPORT
Date: Fri, 7 May 2004 07:16:28 -0400
Message-ID: <20040507111628.GB14119@phlogiston.dyndns.org> (raw)
In-Reply-To: <92EFB0BEDD24E9419E2CD9A2BD35DAEA0439BC@bmsrv001.madrid.bilbomatica.es>
References: <92EFB0BEDD24E9419E2CD9A2BD35DAEA0439BC@bmsrv001.madrid.bilbomatica.es>

On Fri, May 07, 2004 at 10:20:52AM +0200, Freddy Villalba Arias wrote:
> 
> Is there a simple way to generate an export / import script in
> PostgreSQL (i.e. a script that contains INSERT statements for every row
> in a table) ???
> 
> COPY is NOT a good option (personal opinion).

pg_dump -d or -D.  Note that restoring from this is going to be a
whole lot slower than restoring from a COPY based dump.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca



view thread (3+ messages)

Message-ID: <20040507111628.GB14119@phlogiston.dyndns.org>
Permalink:  ../20040507111628.GB14119@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20040507111628.GB14119@phlogiston.dyndns.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: EXPORT / IMPORT
  In-Reply-To: <20040507111628.GB14119@phlogiston.dyndns.org>

* 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