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 1f628m-0006IQ-UM for pgsql-general@arkaria.postgresql.org; Tue, 10 Apr 2018 22:53:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f628l-0005NV-U6 for pgsql-general@arkaria.postgresql.org; Tue, 10 Apr 2018 22:53:27 +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 1f628j-0005NM-U2 for pgsql-general@lists.postgresql.org; Tue, 10 Apr 2018 22:53:27 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f628a-00041x-Te for pgsql-general@lists.postgresql.org; Tue, 10 Apr 2018 22:53:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C7BCA20B0C; Tue, 10 Apr 2018 18:53:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 10 Apr 2018 18:53:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc: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=cxQJvn8OHTeuTTxlaLFJz64RSiOEK59qxHIGa0PhNmY=; b=AOVZ+vk4 lJciwQvJUiqkM6CY66nhp4AaRykxu5B2MgF5Yf8oZ943EBpVWRT1cRIznoSaPUUc rlcXPmp5P4eAU4wryysKQo5R2oJm1x1HQMCjQmeP75WS4y6pXN69EV4+es66MzNw cswGqtE3jxq+0lgzgrelLmwczwVNkEMyrcDQL8iDv5Y0GjJ1LbUwDrcfVu38eOJE /TSjPh2DAQ4poNxfNb2uAShdepFdbBdM4V0PLLsOtCj+M5rhk+KfZkvd07Ac61vQ RiJLCZB8aUKp1Y2IDZ9lFaJXSWOoxlhGpiLq35Hgd/KfvhvyQrmjW7TyqiTwK5S5 TCbYo1vtu9/2kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=cxQJvn8OHTeuTTxlaLFJz64RSiOEK 59qxHIGa0PhNmY=; b=bcPbSrD2EExL3byJRPXSCHCeUjIQw1XYq+Gy/uyPATGIE 7tsPT+UFvHSHGRlIXRT3ecNN5lJbTebZn63xrkEPwBPc59/X3fLCiTVYkf1k3mu0 aWfnqOadMMYKLoAw+ytx4HYCgqK9HnNhEH71n76GhrcWwTH2360pqpwv4jxgZ4Kg hYJMbX4lpx1MFRHRyOO5Sodf6nWtCioy3JiNGf8vsDrCy6YJMYhjK2FFcorXNjRC jmdIMN2fn3K6IcnMyFzhuhzwG1ys2LqgwCzWJ7mDRriMPjE7jrmocJMJ34dZ4eCm zEm3IhwdB/HJA/y/FwLnd1B3X/nQHnHxzRWxzaUkg== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 70B0310256; Tue, 10 Apr 2018 18:53:13 -0400 (EDT) Date: Tue, 10 Apr 2018 15:53:12 -0700 From: Andres Freund To: Alexandre Arruda Cc: Peter Geoghegan , Tomas Vondra , pgsql-general@lists.postgresql.org Subject: Re: ERROR: found multixact from before relminmxid Message-ID: <20180410225312.wwr77tq7fjym4ecs@alap3.anarazel.de> References: <0a057777-206e-b7d8-c078-4ca58678c6fd@2ndquadrant.com> <71793e11-d5cf-81a6-a8a7-60743e39a51c@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-04-10 08:31:20 -0300, Alexandre Arruda wrote: > 2018-04-09 23:51 GMT-03:00 Peter Geoghegan : > > On Mon, Apr 9, 2018 at 6:56 PM, Alexandre Arruda wrote: > >> (... and all other indexes returns null too) > >> > >> I tried with bt_index_check too. Same results. > > > > That's interesting, because it tells me that you have a table that > > appears to not be corrupt, despite the CLUSTER error. Also, the error > > itself comes from sanity checking added to MultiXact freezing fairly > > recently, in commit 699bf7d0. > > > > You didn't say anything about regular VACUUM being broken. Do you find > > that it works without any apparent issue? > > > > I have a suspicion that this could be a subtle bug in > > CLUSTER/freezing. The only heap_freeze_tuple() caller is code used by > > CLUSTER, so it's not that hard to imagine a MultiXact freezing bug > > that is peculiar to CLUSTER. Though I haven't thought about it in much > > detail. > > > > -- > > Peter Geoghegan > > Hi Peter, > > Actualy, I first notice the problem in logs by autovacuum: > > 2018-04-10 08:22:15.385 -03 [55477] CONTEXT: automatic vacuum of > table "production.public.fn06t" > 2018-04-10 08:22:16.815 -03 [55477] ERROR: found multixact 68834765 > from before relminmxid 73262006 > > production=# vacuum analyze verbose fn06t; > INFO: vacuuming "public.fn06t" > ERROR: found multixact 76440919 from before relminmxid 122128619 What does the function in https://www.postgresql.org/message-id/20180319181723.ugaf7hfkluqyos5d@alap3.anarazel.de say about your table? Could you post pg_controldata output and SELECT * FROM pg_class WHERE oid = 'public.fn06t'::regclass; ? Greetings, Andres Freund