Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hge7I-0001KT-EX for pgsql-admin@arkaria.postgresql.org; Thu, 27 Jun 2019 23:47:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hge7G-0000gb-5S for pgsql-admin@arkaria.postgresql.org; Thu, 27 Jun 2019 23:47:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hge7F-0000gS-KR for pgsql-admin@lists.postgresql.org; Thu, 27 Jun 2019 23:47:45 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hge79-0002UY-HJ for pgsql-admin@lists.postgresql.org; Thu, 27 Jun 2019 23:47:44 +0000 Received: by mail-qt1-x841.google.com with SMTP id y57so4438183qtk.4 for ; Thu, 27 Jun 2019 16:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=JxlNm+D5ETPm450tpRWkNVRWJnVeGvM1XmqozjAZhPw=; b=w8ZUreY07jo5Hm+D13fLyh4xZC2x4Kl/Jt99/eceW650WKy/wKmaCW9dCzVhuG2CKG lmb+ZBGxpZklI9hByKt3gxPpPuB8qya8tzJ6/JKJwHBHl2jPCRxP2rMZtYOdMVM+MCdA sC0br2kGlfzDXo+LD2X8kg/g/oMFJS2jEgq/M0CovlOEemjP3/pECNLj16D4BoqrJll7 QohwnXyLUCQ1GOY3cfXdfqMZS8wrZ5Zyeaxjou55bOyWUUM/ISdn1KvX/Forym1ifwUH +V+8kyK+Pf6Prk4lpsxlYQAWLKbM2oVapJXIsoKmJ648avDF+N+zCE/+AuGr7NufbTRt JVDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=JxlNm+D5ETPm450tpRWkNVRWJnVeGvM1XmqozjAZhPw=; b=dEdoNeoFg0lSbJwlK+L6IdSXLgODHHs+cxnZsw2DrfGDv9cfVIae/ecMLMcxQ9dP/n gGdmy8zEcbsFbI/IXAw/QL9zfj+qsgZWNM+Goi00+3dTV+9FGNphlCUy4ahJqKTBhSCZ 2DEZMi/9hV1QwsNw4/hX1d3fG34yG8Hag9JZ/dnc9PBJRy/KsIJzCa+KSYZvdbP5AznS D7uD11EVqBzxF4D3Nji9JVf38x1y5zYZeB63vGwG4dHlxg5XOEIvWuqEEtSTJvujZMHP Alg3J5ozsUXeKNegB348Og4uqrDKvmBaJXztqwJvDrStEhtq8iWjBNJsfOYsJYQWI45D mpyA== X-Gm-Message-State: APjAAAVz2eDISmp8fjnUEcC7WPeRi0Qapb8W1JHaWPBFRBEH22IzIPeb lClNDpbIBdiH1hURL8CxhngwgA== X-Google-Smtp-Source: APXvYqyRYMq5l/B5jr2eic2oox6pHRl4l+oiV2UkYhTM7iTHETrWLUqeXa1j84uPde8XjlY9YUWSnw== X-Received: by 2002:aed:2bc1:: with SMTP id e59mr5585520qtd.7.1561679258286; Thu, 27 Jun 2019 16:47:38 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.49.109]) by smtp.gmail.com with ESMTPSA id y42sm373701qtc.66.2019.06.27.16.47.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 16:47:37 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 39FC81207C3; Thu, 27 Jun 2019 19:47:35 -0400 (-04) Date: Thu, 27 Jun 2019 19:47:35 -0400 From: Alvaro Herrera To: Jenn Cc: pgsql-admin@lists.postgresql.org Subject: Re: Need help to debug ERROR: MultiXactId 808530957 has not been created yet -- apparent Message-ID: <20190627234735.GA9854@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jun-28, Jenn wrote: > Getting "MultiXactId 808530957 has not been created yet -- apparent" error > when trying to VACUUM FREEZE big table, about 263m rows. Normal VACUUM runs > fine. > Also tried to recreate the table and there were no errors "create table > my_table_copy as > select * from my_table". > > 1.Is it data corruption problem? > 2.how to diagnose the error and possibly fix? Yeah, it seems like data corruption -- that multixact value is not anywhere near a reasonable range. Can you find out what page it is complaining about, and get a heap_page_items() from that page? instructions for part 1: 1. in command line: gdb -p , where PID comes from "select pg_backend_pid()" in psql 2. in gdb, do "break errfinish", then "cont". It should wedge. 3. in psql, execute the query that throws the error 4. gdb becomes alive. Do "bt full". A page number is displayed somewhere in the resulting stack trace. If you don't know where to look, paste the output here. part 2: 1. create extension pageinspect 2. select * from heap_page_items(get_raw_page('yourtable'::regclass, )); 3. paste output here -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services