From: Guillaume Lelarge <guillaume@lelarge.info>
To: Nicholas I <nicholas.domnic.i@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: pgdump with insert command help
Date: Fri, 24 Sep 2010 14:49:19 +0200
Message-ID: <4C9C9E4F.3020309@lelarge.info> (raw)
In-Reply-To: <AANLkTimdTxz0yZxKPden=wSh0KnCJJMdoocuVMK4DGK7@mail.gmail.com>
References: <AANLkTimdTxz0yZxKPden=wSh0KnCJJMdoocuVMK4DGK7@mail.gmail.com>
Le 24/09/2010 14:32, Nicholas I a écrit :
> hi,
>
> i am trying to dump a table with insert command rather tahn copy.
>
> pg_dump -Dt --insert table dbname > table.sql;
>
> i am not able to get the output. is this correct ?
>
>
> -Nicholas I
>
You should put the table name right after the -t command-line option.
This way:
pg_dump -Dt table --insert dbname > table.sql
--
Guillaume
http://www.postgresql.frhttp://dalibo.com
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: guillaume@lelarge.info, nicholas.domnic.i@gmail.com
Subject: Re: pgdump with insert command help
In-Reply-To: <4C9C9E4F.3020309@lelarge.info>
* 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