Jeff Davis pgsql at j-davis.com
Wed Jun 11 11:07:52 PDT 2008
On Wed, 2008-06-11 at 14:01 -0400, Geoffrey wrote:
> remoteWorkerThread_1: copy from stdin on local node - PGRES_FATAL_ERROR 
> ERROR:  invalid byte sequence for encoding "UTF8": 0xfa
> HINT:  This error can also happen if the byte sequence does not match 
> the encoding expected by the server, which is controlled by 
> "client_encoding".
> CONTEXT:  COPY avlds, line 339294
> 
> Is this a complaint because Slony expects one type of encoding and 
> Postgresql is using a different one?  Or is it because of difference 
> encoding between the two nodes?  As far as I can see, the encoding is 
> the same on both nodes.

If the encoding is the same everywhere, and you are using PostgreSQL
8.2, it's likely that you got an invalid byte sequence in a text field
by using backslash-escapes.

Once that happens, COPY will no longer work correctly. In fact, a
pg_dump might not be able to be restored.

Slony relies on COPY working correctly, so it's failing for that reason.

Try sanitizing your data to be valid UTF-8 or only using the C locale
(SQL_ASCII encoding).

Regards,
	Jeff Davis



More information about the Slony1-general mailing list