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 1fSAVJ-0001ZW-1m for pgsql-general@arkaria.postgresql.org; Mon, 11 Jun 2018 00:16:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSAVF-0005fk-Kr for pgsql-general@arkaria.postgresql.org; Mon, 11 Jun 2018 00:16:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSAVD-0005fU-Ac for pgsql-general@lists.postgresql.org; Mon, 11 Jun 2018 00:16:09 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSAV5-000071-8J for pgsql-general@postgresql.org; Mon, 11 Jun 2018 00:16:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A65BE2191E; Sun, 10 Jun 2018 20:15:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 10 Jun 2018 20:15:57 -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=G10ja8uIH7DUA+3A+HZ5PgCkE4Msn pKjLnou0egJIWs=; b=T1IsHDzBORpyMVzXV9/S4Wlp+RIvkbwrOd5SisHRVvDXB cMF9YO5neBUU/wHbET3h/yM08dujDfDsUP1h35rWcuPhoTt8UJ6xXAprIXNM3b1z z+nDux6BuQMgHhTcVQ5jgteKsMYZRWFxx8I8ulagVJK7WyC3skioseHL+fTZh2TL lwmd7TcMsnXRKciH8QWHSub86jgflVx0O4sQdvvuE9rE4uRasA99Bpuy3yPAMogf tDUsuNIDMwDewa76N4s7Va75x1lXIZJrU/2/SiLx68xby7boxFu+rTAYVHNvv5fB O4Ou+69lTosEndCa8Fzu6L0bQ/WUmtCfYT7qEDgzg== 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=G10ja8 uIH7DUA+3A+HZ5PgCkE4MsnpKjLnou0egJIWs=; b=NqAoceeXLE73M18ECnTl7j xCV02ZjLoxYOurvrOb+yvDmhExs7XcLjB6rXDZ3fP8TcF9hxDOOc57SWH2JxY92T JV6tdoYdkLtl3Lve2SI55VdJIDR46hu7SAgIdC3IE/3W5m5Dvbm4SsM38LdKEepq V6A/9FTwEwztye4MoJSZPpEd+uEGEyTgliyabZCbJe1s6JwwzineEwfT4ub7Tmcd G2gwCyepEpTp4yfDAB7F8nUKKkB7M1DsKW+OYvGJLmTbE4PgylPyzFMvLAsLZVFy ffke2Vz8pk0sUHCfoNWq1m22JgrA+kjnUzUUTjejzqmnbEeAyUfUri9uXcsHA47g == 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 DC67810268; Sun, 10 Jun 2018 20:15:56 -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> <8b14df48-20e9-3dd0-9990-7131f95bd30a@aklaver.com> From: Adrian Klaver Message-ID: Date: Sun, 10 Jun 2018 17:15:56 -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:45 PM, Alexander Shutyaev wrote: Comments inline. > The error log is like this. Here's its tail: Is this the regular Postgres log or the pg_upgrade log which should be something like pg_upgrade_server.log? > pg_restore: [archiver (db)] could not execute query: ERROR:  database is > not accepting commands to avoid wraparound data loss in database with OID 0 > HINT:  Stop the postmaster and vacuum that database in single-user mode. How did you get into the 10 cluster to report on the database OID's and names? > You might also need to commit or roll back old prepared transactions. >     Command was: ALTER LARGE OBJECT 1740737402 OWNER TO bof_user; > > Before that there is a lot of similar messages - the only things > chainging are the "executing BLOB nnn" number and "must be vacuumed > within nnn transactions" number. > Which database has the large objects? > As for the prepared transactions - no, I don't have them, our > application doesn't use this functionality. Did you check this view to confirm?: https://www.postgresql.org/docs/10/static/view-pg-prepared-xacts.html Just trying to eliminate possibilities. -- Adrian Klaver adrian.klaver@aklaver.com