Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTo8h-0005pu-Uv for pgsql-general@arkaria.postgresql.org; Tue, 06 Apr 2021 16:01:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTo8g-0003D9-SJ for pgsql-general@arkaria.postgresql.org; Tue, 06 Apr 2021 16:01:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTo8g-0003D2-Ig for pgsql-general@lists.postgresql.org; Tue, 06 Apr 2021 16:01:14 +0000 Received: from mail1.dalibo.net ([212.83.143.11] helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTo8d-0007uK-Ep for pgsql-general@lists.postgresql.org; Tue, 06 Apr 2021 16:01:14 +0000 Received: from firost (larco.ioguix.net [78.202.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 71FE31FDD1; Tue, 6 Apr 2021 18:01:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1617724870; bh=KTG9aS5l3TiXwSq4KO9odRZ0DbC469nCggVUZ7c/JM8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BH1QZAuNbajmf40RQ1TeCWXpXz4DXMgm7cGu68zhfdnsFQzhvL6YoHYpUkCLFLkr5 coh+8fbYxol/Besf46XGBz+G1GuakY1GyzxSf4kZovJbJsemmesPIwJFcayRPPAc/B Qd8IuOLprYEk15NgR4eEPFGHYhjPD6ON0OowexME= Date: Tue, 6 Apr 2021 18:01:09 +0200 From: Jehan-Guillaume de Rorthais To: Michael Schanne Cc: Michael Lewis , PostgreSQL General Subject: Re: MultiXactId wraparound and last aggressive vacuum time Message-ID: <20210406180109.4a87a9a7@firost> In-Reply-To: References: Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 5 Apr 2021 17:28:06 -0400 Michael Schanne wrote: > After a closer reading of the documentation, it appears the database should > stop accepting new transactions before a wraparound would ever occur. If > so, then the only possible explanations for this multixactid wraparound > error would be data corruption, or a bug in postgresql. The exact version > I'm using is 9.6.10, which is quite a few versions behind the latest > (9.6.21), but I skimmed through the release notes of the later versions and > did not see any bugfixes in this area. That would leave data corruption as > the only explanation. Is my reasoning correct here? I didn't checked the changelog, and you should definitely run 9.6.21, but I believe your reasoning is correct anyway. A bug might be possible, but I would bet a coin on the corruption. You might want to compare this number with the value reported by: pg_controldata $PGDATA|grep NextMultiXactId Backup your cluster, then, try to isolate the table(s) and block(s) where the corruption occurs and check at them using eg. pageinspect. > I'm willing to upgrade but I would need to justify it somehow, so if I am > missing something please let me know. you can justify the upgrade using this load of reasons: https://why-upgrade.depesz.com/show?from=9.6.10&to=9.6.21 Regards,