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 1iGQRq-00068b-SC for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 16:28:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGQRo-0000SJ-N1 for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 16:28:52 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGQRo-0000SC-DF for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2019 16:28:52 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGQRl-0000uv-LK for pgsql-general@postgresql.org; Fri, 04 Oct 2019 16:28:52 +0000 Received: by mail-qt1-x844.google.com with SMTP id c3so9306917qtv.10 for ; Fri, 04 Oct 2019 09:28:49 -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=0siyG8P/qlzvMPSRGDgOSKUu2sdNv3yFOOBAXAoWPBM=; b=qjMfy7ZDiuswaU6Kl5LOUs62zOJ7rMEN2CLp2a+3KMzRGQGLkwymlBHOCVEYE0sCnO gRbTW2Spa/Zc1RDfxcZEzQ29X5WxFuZLOMiUiWp+62Hamyc5nikNWtxujmqtwbyWz/aB 4Ymyxf5K0ibl33ATJLAEt9Axxuia+O2ZaazzHgPc1HoDxXFEgP7BcBwLpaaXBdXp5Kbm p55D04XHcdoyrKJtvDslF4IQW6L4C+3T3XPYsN6hOL8uq/pOxHjHRwgktjdJzAdjZncP I2QhAbcckvstcGnOsQmcm4arOHOIFTjiPw+BAvUBwPEvJeApjQOAnFTbezLDWdCYyezT MXfg== 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=0siyG8P/qlzvMPSRGDgOSKUu2sdNv3yFOOBAXAoWPBM=; b=CmH82LNsEmhBwHu5bU9t315u9hmVEZKFsCzgyPd8bghVF3pMVwphpLKV4/bfp+k/Rc XRa9X1+FFYATcxozlBWulxf/pK+n23F65OwIk+eLmlNk8MqvgBUmKTvpnSJLL7oLOJxM OLj1uLI7yzQFswc9+noYhTNCuQzzsrFr4tEwpHZ5vxH8i98K9qLJEHH6WpIv3nMcm2SV BJjnWzLWRgoReLw4uzaWJ8pnAKSDrBbjgESdNDfDGfsPYjb+anQyVNeqC33+wR04oD3e 26falkEIPKIiDNluiPCHoz10D3L19v3wu46SYxychkZswiRgVp0xYVOjyrIIkRIDjMfE NM7Q== X-Gm-Message-State: APjAAAV+92JKzuir2iqowKyak6HPnAdA+U52xYLnzgcFog/7zBTkvNb1 IueL5epXBg/wfmdXVOsBQifVVQiSh7c= X-Google-Smtp-Source: APXvYqwFNraaVpJvJGMcAMBXY01vKtpxCzMebZhC8DOf01olj0ecswrTlCvulaoZFPA/j07EGCGBCg== X-Received: by 2002:a0c:921a:: with SMTP id a26mr14584774qva.98.1570206527919; Fri, 04 Oct 2019 09:28:47 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id s23sm4540552qte.72.2019.10.04.09.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 09:28:46 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id B9DCD3009BD; Fri, 4 Oct 2019 13:28:43 -0300 (-03) Date: Fri, 4 Oct 2019 13:28:43 -0300 From: Alvaro Herrera To: Moreno Andreo Cc: PostgreSQL mailing lists Subject: Re: Pg11 -- MultiXactId xxxx has not been created yet -- apparent wraparound Message-ID: <20191004162843.GA23254@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.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Oct-04, Moreno Andreo wrote: > Il 04/10/19 17:30, Alvaro Herrera ha scritto: > > On 2019-Oct-04, Moreno Andreo wrote: > > > > > select * from heap_page_items(get_raw_page('tablename',3159)); > > > select * from heap_page_items(get_raw_page('tablename',3160)); > > > > > > and so on for about 5 or 6 pages. > > Please paste the output of that for pages 3159 and 3160, as well as the > > output of pg_controldata. > > > Thanks Alvaro, >     you can find attached the data you requested Hmm, so it is tuple (3160,31) that's giving you grief -- it has xmax=12800 t_infomask=0x1103 (HEAP_XMAX_IS_MULTI | HEAP_XMIN_COMMITTED | others) Which is weird, since it has none of the locking bits. ... and also the valid range of multixacts as of the last checkpoint was: > NextMultiXactId dell'ultimo checkpoint: 366 > oldestMultiXID dell'ultimo checkpoint: 365 so the value 12800 is certainly not in range there. I wonder if it would work to just clear that multixact with SELECT ... WHERE ctid='(3160,31)' FOR UPDATE If this was in my hands, I would scan the WAL looking for the place that last touched this page (and the latest FPI for this page, also). It might have an explanation of what went on. Maybe use the page's LSN (from pageinspect's page_header()) as starting point for the WAL location that modified the page. I hope you have a WAL archive that goes back to well before the previous checkpoint. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services