pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mariel Cherkassky <mariel.cherkassky@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Could not open file "pg_subtrans/01EB"
Date: Sun, 26 Aug 2018 11:51:31 -0400
Message-ID: <20970.1535298691@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+t6e1=fYtSwS=X4mZ=gS-HP6N9Sc4gacZB4uR_+05wAwrzreA@mail.gmail.com>
References: <CA+t6e1=fYtSwS=X4mZ=gS-HP6N9Sc4gacZB4uR_+05wAwrzreA@mail.gmail.com>

Mariel Cherkassky <mariel.cherkassky@gmail.com> writes:
> I'm trying to investigate a database of one of our clients. The database
> version is 9.2.5.

1. Fire their DBA for dereliction of duty.

2. Update to the last available release of 9.2.x (9.2.24, looks like).

3. Vacuum everything and see if it gets better.

Vacuuming may or may not fix the observed data corruption problems, but
it's silly to ignore the fact that they're missing four years worth
of bug fixes in that branch.  In particular I'm noticing the first
entry in the change notes for 9.2.6, which recommends "vacuuming all
tables in all databases while having vacuum_freeze_table_age set to zero":
https://www.postgresql.org/docs/9.2/static/release-9-2-6.html
That problem as-described seems to involve rows disappearing, rather than
getting duplicated, but I wouldn't rule out that it could also have
symptoms like this.

If that doesn't fix things, you could then try:

4. Manually eliminate duplicate rows by identifying which one of each pair
seems older and deleting it with DELETE ... WHERE ctid = '(x,y)'.  Then
reindex to confirm no duplicates remain.

But you still need step 2, to reduce the odds the problem will recur.

			regards, tom lane




view thread (6+ messages)  latest in thread

Message-ID: <20970.1535298691@sss.pgh.pa.us>
Permalink:  ../20970.1535298691@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20970.1535298691@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mariel.cherkassky@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Could not open file "pg_subtrans/01EB"
  In-Reply-To: <20970.1535298691@sss.pgh.pa.us>

* 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