/pg_dump -U postgres -h <source host> $srcdb |
/usr/local/pgsql/bin/psql -p $port -U postgres -h <destination host
> $destinationdb
It will help you, i guess.
thanks,
It will help you, i guess.
thanks,
Thanks & Regards,
M Naveen Kuamr,
PostgreSQL Database Administrator,
M Naveen Kuamr,
PostgreSQL Database Administrator,
Mobile Number: +91 7755929449.
On Wed, Jun 24, 2015 at 1:33 PM, Ankur Kaushik <ankurkaushik@xxxxxxxxx> wrote:
Hi ,When Using pg_dumpMaster Databasepg_dump -U postgres -n public $Source_db -c -t $2 | gzip -9 > $db_path/$2_$1.dump.gzdumping Other server DatabaseUsing Restore Commandgunzip < $DB_PATH/$2_$1.dump.gz | PGPASSWORD="postgres" psql -U postgres -h 10.20.41.182 db1I am Getting Below Error======ERROR: syntax error at or near "&#"LINE 1: हinvalid command \N=======When I use --insert with pg_dump this works fine and restore the data Properly but insert is slow also there is no batch insert in postgresql.What I concern using "copy in pg_dump" the field are separated in TAB delimited can we explicitily ask pg_dump for fiield-terminated by ',' ?