pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Thomas Tignor <tptignor@yahoo.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: postgres 9.5 DB corruption: invalid byte sequence for encoding "UTF8"
Date: Tue, 26 Mar 2019 09:25:24 +0100
Message-ID: <36fb4cf70a723ffe5ffe9dba850357fa0bc97b18.camel@cybertec.at> (raw)
In-Reply-To: <1080815989.10741938.1553539577631@mail.yahoo.com>
References: <1080815989.10741938.1553539577631.ref@mail.yahoo.com>
	<1080815989.10741938.1553539577631@mail.yahoo.com>

Thomas Tignor wrote:
> We are experiencing intermittent DB corruption in postgres 9.5.14. We are trying to
> identify and eliminate all sources. We are using two independent services for data
> replication, Slony-I v2.2.6 and a custom service developed in-house. Both are based
> on COPY operations. DB corruption is observed when COPY operations fail with an error
> of the form: 'invalid byte sequence for encoding "UTF8"'.
> This occurs with a frequency ranging between a few days and several weeks.

It might be a storage problem, but it could also be a problem with how the data
get into the database in the first place.

I would consider it unlikely that there is a bug in the TOAST code that changes
just one byte.

You could use block checksums to see if the storage is at fault, but unfortunately
it requires an "initdb", dump and restore to switch to checksums.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





view thread (10+ messages)  latest in thread

Message-ID: <36fb4cf70a723ffe5ffe9dba850357fa0bc97b18.camel@cybertec.at>
Permalink:  ../36fb4cf70a723ffe5ffe9dba850357fa0bc97b18.camel@cybertec.at/
Also on:    postgresql.org/message-id/36fb4cf70a723ffe5ffe9dba850357fa0bc97b18.camel@cybertec.at

 · 

reply

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, tptignor@yahoo.com
  Subject: Re: postgres 9.5 DB corruption: invalid byte sequence for encoding "UTF8"
  In-Reply-To: <36fb4cf70a723ffe5ffe9dba850357fa0bc97b18.camel@cybertec.at>
  References: <1080815989.10741938.1553539577631.ref@mail.yahoo.com> <1080815989.10741938.1553539577631@mail.yahoo.com> <36fb4cf70a723ffe5ffe9dba850357fa0bc97b18.camel@cybertec.at>

* 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