Re: dump using copy failed

From: naveen kumar <mnaveendba2(at)gmail(dot)com>
To: Ankur Kaushik <ankurkaushik(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: dump using copy failed
Date: 2015-06-25 15:24:27
Message-ID: CADye41KvoVAz8LE+V6QWpZud_oe_+mS+Bzi+jWMf7KLSv1BTPA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

/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,

Thanks & Regards,
M Naveen Kuamr,
PostgreSQL Database Administrator,
Mobile Number: +91 7755929449.

On Wed, Jun 24, 2015 at 1:33 PM, Ankur Kaushik <ankurkaushik(at)gmail(dot)com>
wrote:

>
> 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: &#2361;
>
> 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 ',' ?
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Dave Johansen 2015-06-25 15:49:01 database must be vacuumed with <N> transactions
Previous Message Alvaro Herrera 2015-06-25 15:10:35 Re: Trying to change the owner of some tables