Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fRjud-0004dq-78 for pgsql-general@arkaria.postgresql.org; Sat, 09 Jun 2018 19:52:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fRjub-0002dY-UR for pgsql-general@arkaria.postgresql.org; Sat, 09 Jun 2018 19:52:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fRjub-0002dM-MZ for pgsql-general@lists.postgresql.org; Sat, 09 Jun 2018 19:52:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fRjuZ-0007Nh-OT for pgsql-general@postgresql.org; Sat, 09 Jun 2018 19:52:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w59JqQfr009826; Sat, 9 Jun 2018 15:52:26 -0400 From: Tom Lane To: Adrian Klaver cc: Alexander Shutyaev , pgsql-general Subject: Re: pg_upgrade and wraparound In-reply-to: <107c7c17-2e53-6cd1-1dbd-94d63f7a205f@aklaver.com> References: <107c7c17-2e53-6cd1-1dbd-94d63f7a205f@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Sat, 09 Jun 2018 12:41:44 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9824.1528573946.1@sss.pgh.pa.us> Date: Sat, 09 Jun 2018 15:52:26 -0400 Message-ID: <9825.1528573946@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > On 06/09/2018 03:46 AM, Alexander Shutyaev wrote: >> The upgrade operation failed after several hours with the following error: >> database is not accepting commands to avoid wraparound data loss in >> database with OID 0 > Do you know which database has an OID of 0? Well, none do, so the correct question is what is passing an invalid database OID to the code that's complaining. This sure looks like a bug, though I'm not sure we have enough info to locate it. regards, tom lane