pg_dump: COPY vs INSERT

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

pg_dump: COPY vs INSERT

От:
Colton A Smith <smith@cs.utk.edu>
Дата:

Hi:

   When I try 'pg_dump -f output.txt -t  -d ',
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 <tgl@sss.pgh.pa.us>
Дата:
Colton A Smith  writes:
>    When I try 'pg_dump -f output.txt -t  -d ',
> 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
FAQ