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 1fS7zQ-0005mJ-R3 for pgsql-general@arkaria.postgresql.org; Sun, 10 Jun 2018 21:35:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fS7zM-0001UF-I1 for pgsql-general@arkaria.postgresql.org; Sun, 10 Jun 2018 21:35:04 +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 1fS7zM-0001U5-AH for pgsql-general@lists.postgresql.org; Sun, 10 Jun 2018 21:35:04 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fS7zF-0006wz-FK for pgsql-general@postgresql.org; Sun, 10 Jun 2018 21:35:03 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5664221BAE; Sun, 10 Jun 2018 17:34:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 10 Jun 2018 17:34:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=fOcho7jNXmHxF1mxmRBrpwXkj0wBI V1y0/+gKIWsU6c=; b=jXHq+Bb5VEeS9XyTRvhFGoaZ83IoCrFqot7R30DJfPoWS BqftDqoVQ2O1ujCCZIQhuGB2p0+C3zAG+a6Oi6adZOqLqGnsHMdmuR6KLAIDocsL 1jECFEpx18UPcR2UFJ92XUxROGz6VXPZ/r9891gO5Cs1vsYYnRSxpsMhF/qGwWFf HQU/ICFvJi7BwgYMQC4HM+4xEmzwp/+WIn+Js4QWdLWO5sw/0FSiXkPbyWvya5Rv yQfUY5mrhd6cAPTQnm6hCUfoX440t7qBr5zWuqhhryVsl4fjsggz7Uc/xRmqdLew IJdfgM9d4cyjCgHLy8P7fkd+7cmHlw1ybX7Vgow3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=fOcho7 jNXmHxF1mxmRBrpwXkj0wBIV1y0/+gKIWsU6c=; b=mqQMsIlKae2SXJwsxuf7xA O/fwjnL9vdpmbIobb4LsVZ6uAhNHrActMUKkB+EsHR67Gv9vFlNZVb1k2ogS5sW+ vqulBoSAJPc2dluwwH7kmC0kHEPxmQM6Ujk+wkNEuXYdlhDK6zCRfet71sUdbdLW 9bHtpQSnvbOUJKmUMuAMyzM7rNyK7OVoSyaNklbKHne+NG3EsaHOaRtFVE+Ho9tr x7+X1niSj2lcsuNRPsLu/KSYOgqEnYiaw/mCOqzuP0hQ3TXChwl5v8aJeWj2DOMm RcA4NjOWjw1n71JHLEG4KWu1KJo2uwAYW4BkDjliCwyTQR2FDiSwMEoZKi3FJoVw == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.159.209]) by mail.messagingengine.com (Postfix) with ESMTPA id C86281025C; Sun, 10 Jun 2018 17:34:55 -0400 (EDT) Subject: Re: pg_upgrade and wraparound To: Alexander Shutyaev Cc: pgsql-general References: <107c7c17-2e53-6cd1-1dbd-94d63f7a205f@aklaver.com> <9825.1528573946@sss.pgh.pa.us> <1528663590828-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <8b14df48-20e9-3dd0-9990-7131f95bd30a@aklaver.com> Date: Sun, 10 Jun 2018 14:34:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/10/2018 02:09 PM, Alexander Shutyaev wrote: > Some more notes on databses. > > Although the pg_upgrade failed, I've decided to check the databases in > the new cluster (10.4). There is no database with oid 0 either. Also to > be noted that some system databases changed the oids while others > retained them. If I am following the source code for pg_upgrade correctly that is expected. Pretty sure because the order of object creation is different. > > And of my databases - sslentry. It had a very big oid (can that seem > strange?) and its oid has changed. OID's are added at time of object creation so I would say the ssslentry database was created some time after the other databases in the 9.6 cluster. Actually probably more accurate to say after 1016305714 - 16400(bof db) objects that have OID's where created. When the upgrade failed pg_upgrade should have pointed you at an error log. Did it and is there anything useful there? From your OP post: "You might also need to commit or roll back old prepared transactions." Do you have any of those in the 9.6 cluster? See: https://www.postgresql.org/docs/10/static/view-pg-prepared-xacts.html > > select oid, datname from pg_database; >   oid  |  datname > -------+----------- >  13011 | template0 >  16400 | bof >  13012 | postgres >  16401 | sslentry >      1 | template1 > (5 rows) > > -- Adrian Klaver adrian.klaver@aklaver.com