Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f69ft-0003Pr-2I for pgsql-general@arkaria.postgresql.org; Wed, 11 Apr 2018 06:56:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f69fr-0006We-Tw for pgsql-general@arkaria.postgresql.org; Wed, 11 Apr 2018 06:56:07 +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 1f69fp-0006WV-JT for pgsql-general@lists.postgresql.org; Wed, 11 Apr 2018 06:56:07 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f69fl-0007cQ-Af for pgsql-general@lists.postgresql.org; Wed, 11 Apr 2018 06:56:04 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AE9EE21079; Wed, 11 Apr 2018 02:55:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 11 Apr 2018 02:55:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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=fm1; bh=espOpcVv17IcEIb1x2Vo+mgc+s3hN DD+Ak4TEUYDeZA=; b=Sk8ipgvalfsw5R5GNRvL2vGEBZ12kDVH1MBL9bz5KoZsB 5DIpjXL5QPVXR5AGocsAo2Q27RyeYP3Bf1NNRzCSEulbArDiV7vxHyLkQvfXMaEG dCWU1k7PfFMmwYdt79LMCzOXwPb891vORcwGuww+XaTfbqrhpVd0yy7o+rvZqvoo eRzoLn2yhDDPg3VRPDWX66e6mQG9aJ9woUHlqfDIwynPyF8vdnl7eqlM+4uEy1uh LUh99i68qJRBV1NP6QHYrRdSnIAhRWV14176o/qVwVX7seOLDTycmu0k7ObNC19E mGbdUrUONhNPRe3ts6Q/OKKGZohilYoxj3zF/bFxA== 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=fm2; bh=espOpc Vv17IcEIb1x2Vo+mgc+s3hNDD+Ak4TEUYDeZA=; b=X//nTndoqCvUhg1nGIT6sQ 40GXbMgqjSDBt505vXQhggAWgjzVEnaQh+V4iF30sxGyrqq864gHbpxoB/eVPdYI Pdx7EfoTofcLUX/SiCmpZ0g/EB0pPuvtv2fPsr5eEdW0ZNd92ZcupG3PSOsezypy 5DPiCuGiZ2lZz5xso3CzBwU7dbCDxERqh357yR0OYmKAG2RuZW4LJ0MZemhze2e6 gKM6tSHGDDX7lHdOggTKYhcRJwsXmPizo5gDIfVoFV0JB50qIJ8Ge3jiethd2itr dmjbpvQmGoQEhH8MzsHe99mJuN3+h08U7WWLLA6NsfSED3bf0DjfWHZ5mb/tPK/Q == X-ME-Sender: Received: from android-f30183c8ec8251df.lan (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 3B285E4122; Wed, 11 Apr 2018 02:55:59 -0400 (EDT) Date: Tue, 10 Apr 2018 23:55:56 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: <0a057777-206e-b7d8-c078-4ca58678c6fd@2ndquadrant.com> <71793e11-d5cf-81a6-a8a7-60743e39a51c@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: ERROR: found multixact from before relminmxid To: Pavan Deolasee ,Alexandre Arruda CC: Peter Geoghegan ,Tomas Vondra ,pgsql-general@lists.postgresql.org From: Andres Freund Message-ID: <9101DF8D-D574-4D4B-906C-EE1AA3CD134B@anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On April 10, 2018 11:51:40 PM PDT, Pavan Deolasee wrote: >On Wed, Apr 11, 2018 at 8:31 AM, Alexandre Arruda >wrote: > >> 2018-04-10 19:09 GMT-03:00 Peter Geoghegan : >> > On Tue, Apr 10, 2018 at 4:31 AM, Alexandre Arruda > >> wrote: >> >> Actualy, I first notice the problem in logs by autovacuum: >> >> >> >> 2018-04-10 08:22:15=2E385 -03 [55477] CONTEXT: automatic vacuum of >> >> table "production=2Epublic=2Efn06t" >> >> 2018-04-10 08:22:16=2E815 -03 [55477] ERROR: found multixact >68834765 >> >> from before relminmxid 73262006 >> >> >> >> production=3D# vacuum analyze verbose fn06t; >> >> INFO: vacuuming "public=2Efn06t" >> >> ERROR: found multixact 76440919 from before relminmxid 122128619 >> > >> > Do you think that CLUSTER was run before regular VACUUM/autovacuum >> > showed this error, though? >> >> Yes, because the table is clustered in the old database and >> reclustered when it was reloaded in the version 10=2E >> But the table was not clustered again=2E >> >> >I wonder if we're staring at some race condition in visibility map >where a >previous vacuum inadvertently skips a page because the visibility map >bit >is set, thus leaving behind an unfrozen multixid=2E The page then again >becomes !all_visible and the next vacuum then complains about the >unfrozen >multixid=2E Should be possible to write a query using page inspect and freespacemap to= make sure they at least currently match=2E Andres --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E