From: | Ankur Kaushik <ankurkaushik(at)gmail(dot)com> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | dump using copy failed |
Date: | 2015-06-24 08:03:12 |
Message-ID: | CALXoLqz-sWRihB6EnHptTFdGcBTFbm0y63iYFLecu0vZ_eWobg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi ,
When Using pg_dump
Master Database
pg_dump -U postgres -n public $Source_db -c -t $2 | gzip -9 >
$db_path/$2_$1.dump.gz
dumping Other server Database
Using Restore Command
gunzip < $DB_PATH/$2_$1.dump.gz | PGPASSWORD="postgres" psql -U postgres -h
10.20.41.182 db1
I 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 ',' ?
From | Date | Subject | |
---|---|---|---|
Next Message | Alberto Olivares | 2015-06-24 14:43:25 | Replication broken. Stale data in slave Database |
Previous Message | Guillaume Lelarge | 2015-06-23 22:15:01 | Re: ORACLE_FDW |