Re: Dumping from older version

From: Carlos Moreno <moreno_pg(at)mochima(dot)com>
To:
Cc: "'PostgreSQL'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dumping from older version
Date: 2007-09-26 15:26:01
Message-ID: 46FA7A09.6040305@mochima.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Raymond O'Donnell wrote:
> Just wondering - when using a newer pg_dump to dump from an older
> Postgres, does pg_dump automatically generate INSERT statements for
> the data rather than using COPY?
>
> I noticed this today when transferring data to a newer server -
> pg_dump generated INSERTs although I didn't ask for them. Not a
> problem, but I was curious.

Maybe you used the switch -d to specify the database? (like with psql
and some
other client applications).

The switch -d in pg_dump goes for "Generate inserts instead of COPY
commands"

Double-check the syntax/switches for pg_dump (pg_dump --help)

HTH,

Carlos
--

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jimmy Choi 2007-09-26 15:31:41 Re: Help tuning a large table off disk and into RAM
Previous Message Bill Moran 2007-09-26 15:24:29 Re: Help tuning a large table off disk and into RAM