Re: tracking errors in psql - Mailing list pgsql-general

From brian
Subject Re: tracking errors in psql
Date
Msg-id 45619DBE.5010908@zijn-digital.com
Whole thread Raw
In response to Re: tracking errors in psql  (Richard Huxton <dev@archonet.com>)
Responses Re: tracking errors in psql
List pgsql-general
Richard Huxton wrote:
> brian wrote:
>
>> I've just gotten a dump from pgMyAdmin for a production database that
>> i wanted to update the dev db with. However, i'm seeing a multitude of
>> errors. From what i can see, the columns are mixed up in the COPY
>> block for a particular table. My guess is that a tab character has
>> thrown everything into disaray. The dump is structure & data, using
>> COPY FROM STDIN.
>
>
> 1. This shouldn't happen. Dump/restore should work for all data with the
> standard pg_dump/pg_restore tools.

It did. I asked the client to send me a dump using seperate INSERTs
instead of COPY. That worked fine.

Note that the dump did not come from pg_dump, but from a third-party
software (see below).

> 2. What is "pgMyAdmin" - I'm not sure I've heard of it.
>

Right, that would be phpPGAdmin (which i've not had much experience with).

As for tracking down where the offending values were, i used \o to echo
out to a file.

brian

pgsql-general by date:

Previous
From: Russell Smith
Date:
Subject: Re: pg_hba.conf
Next
From: Marc Evans
Date:
Subject: Re: pg_hba.conf