From: Ivo Rossacher <rossacher@bluewin.ch>
To: pgsql-admin@postgresql.org
Subject: Re: Restoring dtabase problem
Date: Fri, 4 Aug 2006 21:36:11 +0200
Message-ID: <200608042136.11676.rossacher@bluewin.ch> (raw)
In-Reply-To: <BF337097BDD9D849A2F4B818DDB27987252589@stash.stackdump.local>
References: <BF337097BDD9D849A2F4B818DDB27987252589@stash.stackdump.local>
Am Freitag, 4. August 2006 19.06 schrieb Benjamin Krajmalnik:
> I am trying to restore a database from a pg_dump.
> I have a problematic issue in that a few rows have a problem with UTF-8
> encoding.
> All of these rows are in a specific table.
> Is there something I can run against the table which will validate the
> rows which have the bad data and delete the rows?
Typically this issue is related to a low number of invalid characters comming
up a lot of time in the file. So I would replace the invalid codes with the
correct unicode character by a text editor (take care to choose the correct
encoding in the editor). In the context of the rest of the text it becomes
mostly clear what the correct unicode character should be.
>
> The database is quite large (8GB) and I was informed that it would be
> much faster to restore using the COPY method as opposed to the INSERT
> method.
This is correct, but has to be done when dumping (see man pg_dump -> options
-d -D). 8GB, well this will take quite some time with inserts ...
Regards
Ivo
> Any and all assistance will be deeply appreciated.
>
>
> Regards,
>
> Benjamin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rossacher@bluewin.ch
Subject: Re: Restoring dtabase problem
In-Reply-To: <200608042136.11676.rossacher@bluewin.ch>
References: <BF337097BDD9D849A2F4B818DDB27987252589@stash.stackdump.local> <200608042136.11676.rossacher@bluewin.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox