Re: BUG #16352: Data corruption in few tables

From: KrishnaKanth BN <kittu(dot)kkp(at)gmail(dot)com>
To: krishnakanth <krishnakanth_bn(at)infosys(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16352: Data corruption in few tables
Date: 2020-04-15 17:09:19
Message-ID: CA+2rLhYjsm=58nMOyV=THz0Zf4ed7HbWAY1ucbJNGJTet0HOzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi All,

Can you please help us on this issue?

On Wed 8 Apr, 2020, 21:30 PG Bug reporting form, <noreply(at)postgresql(dot)org>
wrote:

> The following bug has been logged on the website:
>
> Bug reference: 16352
> Logged by: KrishnaKanth BN
> Email address: Krishnakanth_bn(at)infosys(dot)com
> PostgreSQL version: 9.6.13
> Operating system: Docker image postgres:9.6.13
> Description:
>
> Our Application is using Postgres Version (Image- postgres:9.6.13) and we
> are running it as Docker Container with Volume mounted to a NFS storage. We
> came across a peculiar issue.
>
> We had enabled unique key constraint on a particular table, it was violated
> and had duplicate data. When this table was queried in the application, it
> was resulting in chunk errors. This had major outage in the application.
>
> ERROR: missing chunk number 0 for toast value 241012 in pg_toast_2619
> STATEMENT: SELECT distinct role_name FROM tapplication_roles INNER JOIN
> troles ON tapplication_roles.role_id = troles.role_id where user_id in
> ('user1','value1')
>
> We followed several posts and somehow managed to remove the duplicate rows
> and reindexed and vacuumed the table. We also had to manually remove
> duplicate entries in pg_statistic table and reindex and vaccum it.
>
> There are couple of other tables in which few rows are corrupted. It is
> because of a corrupt value in one of the columns.
>
> We did not see any error in the container logs to isolate this issue when
> it
> first occurred.
>
> Can you please throw some light what might have caused the corruption and
> how can we prevent it?
>
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2020-04-15 17:50:46 BUG #16368: Incorrect function inlining in the presence of a window function
Previous Message PG Bug reporting form 2020-04-15 16:35:54 BUG #16367: Fail yum update some packages. Example postgis25_11