Обсуждение: pg_dump

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

pg_dump

От
Ramesh T
Дата:
hi,
i need to export a file the database 
postgres
pg_dump -U postgres -C -Fp -f c:/backup/db2.dump  db_1;

where i can run pg_dump
please send me details 

i want to export db_1 to db2
i got an error below

postgres=# pg_dump -U postgres -C -Fp -f c:/backup/db_2.dump
 db_1;
ERROR:  syntax error at or near "pg_dump"
LINE 1: pg_dump -U postgres -C -Fp -f c:/backup/db_2du...

i'm using putty to connect host
how to bash to c:\..?