Обсуждение: pg_dump: COPY vs INSERT

Поиск
Список
Период
Сортировка

pg_dump: COPY vs INSERT

От
Colton A Smith
Дата:
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!

Re: pg_dump: COPY vs INSERT

От
Tom Lane
Дата:
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