pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dump: COPY vs INSERT
2+ messages / 2 participants
[nested] [flat]
* pg_dump: COPY vs INSERT
@ 2006-06-16 12:12 Colton A Smith <smith@cs.utk.edu>
0 siblings, 1 reply; 2+ messages in thread
From: Colton A Smith @ 2006-06-16 12:12 UTC (permalink / raw)
To: pgsql-admin
Hi:
When I try 'pg_dump -f output.txt -t <tablename> -d <databasename>',
output.txt is always filled with INSERT statements. The same holds
true if I use the '-a' option as well. How can I configure pg_dump to
output a file I can use with COPY instead?
Thanks as always!
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_dump: COPY vs INSERT
@ 2006-06-17 16:36 Tom Lane <tgl@sss.pgh.pa.us>
parent: Colton A Smith <smith@cs.utk.edu>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2006-06-17 16:36 UTC (permalink / raw)
To: Colton A Smith <smith@cs.utk.edu>; +Cc: pgsql-admin
Colton A Smith <smith@cs.utk.edu> writes:
> When I try 'pg_dump -f output.txt -t <tablename> -d <databasename>',
> output.txt is always filled with INSERT statements.
That's what the -d switch tells it to do. Better read the man page
again, or see pg_dump --help.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-06-17 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-16 12:12 pg_dump: COPY vs INSERT Colton A Smith <smith@cs.utk.edu>
2006-06-17 16:36 ` Tom Lane <tgl@sss.pgh.pa.us>
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