Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT7jJ-0001U2-Up for pgsql-general@arkaria.postgresql.org; Wed, 22 Sep 2021 19:16:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mT7jI-00051R-Do for pgsql-general@arkaria.postgresql.org; Wed, 22 Sep 2021 19:16:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT7jI-00051J-4l for pgsql-general@lists.postgresql.org; Wed, 22 Sep 2021 19:16:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT7jF-0004es-TQ for pgsql-general@lists.postgresql.org; Wed, 22 Sep 2021 19:16:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 18MJGNGN2223655; Wed, 22 Sep 2021 15:16:23 -0400 From: Tom Lane To: Tobias Meyer cc: pgsql-general@lists.postgresql.org Subject: Re: Remove duplicated row in pg_largeobject_metadata In-reply-to: References: <1488151.1631984508@sss.pgh.pa.us> <1492489.1631989691@sss.pgh.pa.us> Comments: In-reply-to Tobias Meyer message dated "Wed, 22 Sep 2021 21:10:34 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2223653.1632338183.1@sss.pgh.pa.us> Date: Wed, 22 Sep 2021 15:16:23 -0400 Message-ID: <2223654.1632338183@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tobias Meyer 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