Re: pg_dump and copy command

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Chris Velevitch" <chris(dot)velevitch(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_dump and copy command
Date: 2006-04-05 15:40:16
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4011C9A95@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Tom Lane
> Sent: 05 April 2006 15:03
> To: Chris Velevitch
> Cc: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] pg_dump and copy command
>
> "Chris Velevitch" <chris(dot)velevitch(at)gmail(dot)com> writes:
> > I've dumped a 7.4.5 database using pg_dump and when I used
> the result
> > via pgAdmin v1.4.2 on a remote 7.4.11 server, I get an error:-
>
> > ERROR: syntax error at or near "45183" at character 5848
>
> Does pgAdmin promise that it can read pg_dump scripts?
> They're intended to be fed into psql. The symptom sounds
> like pgAdmin is getting confused about where the command
> boundaries are, which is fairly easy to do in a mixed
> SQL-and-COPY-data script.

pgAdmin PQexec's its input, therefore cannot handle the copy from stdin
in a pg_dump script. It should work if you use INSERTs instead of COPY
though.

Regards, Dave.

Browse pgsql-general by date

  From Date Subject
Next Message Marc G. Fournier 2006-04-05 15:52:40 Re: Looking for good PostgreSQL hosters
Previous Message Stefan Nobis 2006-04-05 15:38:34 Re: Oracle outer join syntax