pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tobias Meyer <t9m@qad.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Remove duplicated row in pg_largeobject_metadata
Date: Wed, 22 Sep 2021 15:16:23 -0400
Message-ID: <2223654.1632338183@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAEpUZ=VfVyC+skmgHTovoiE0NP7WfP8459RvjURsa4RkPQdDw@mail.gmail.com>
References: <CAAEpUZn=G6+tJ46QGYegdNyKuOsSYVAbsXGGR4_Fj7EJDxvicQ@mail.gmail.com>
	<1488151.1631984508@sss.pgh.pa.us>
	<CAAEpUZm5Q0FJBPHthjmyzuV4jDHoM251y+-6ViLX1OR1Pt8vGQ@mail.gmail.com>
	<1492489.1631989691@sss.pgh.pa.us>
	<CAAEpUZm7tExX6Q88SN=KQ2R9P0QE3SOVd2=2WHy3DXHe9Hpgzw@mail.gmail.com>
	<CAAEpUZ=VfVyC+skmgHTovoiE0NP7WfP8459RvjURsa4RkPQdDw@mail.gmail.com>

Tobias Meyer <t9m@qad.com> writes:
> I was able to correlate the transaction ids (xmin) of the duplicate rows in
> pg_largeobject_meta with times stored in another table, and found the
> duplicates were all added on one specific day, while the originals nicely
> spread out over time. I was further able to trace that date back to a
> cluster upgrade (pg_upgradecluster) we performed with that machine, so I
> guess we have a pretty good candidate. After the upgrade, no more
> duplicates were produced.

Interesting.  Can you nail down the software versions that were in
use here?  That'd be the old PG server version upgraded from, the
new server version upgraded to, the versions of pg_upgrade and
pg_dump (these probably should match the new server version, but
I'm not certain we enforce that), and the pg_upgradecluster
script version?

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <2223654.1632338183@sss.pgh.pa.us>
Permalink:  ../2223654.1632338183@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2223654.1632338183@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 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: tgl@sss.pgh.pa.us, t9m@qad.com
  Subject: Re: Remove duplicated row in pg_largeobject_metadata
  In-Reply-To: <2223654.1632338183@sss.pgh.pa.us>
  References: <CAAEpUZn=G6+tJ46QGYegdNyKuOsSYVAbsXGGR4_Fj7EJDxvicQ@mail.gmail.com> <1488151.1631984508@sss.pgh.pa.us> <CAAEpUZm5Q0FJBPHthjmyzuV4jDHoM251y+-6ViLX1OR1Pt8vGQ@mail.gmail.com> <1492489.1631989691@sss.pgh.pa.us> <CAAEpUZm7tExX6Q88SN=KQ2R9P0QE3SOVd2=2WHy3DXHe9Hpgzw@mail.gmail.com> <CAAEpUZ=VfVyC+skmgHTovoiE0NP7WfP8459RvjURsa4RkPQdDw@mail.gmail.com> <2223654.1632338183@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