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 1iIG7s-00087x-5K for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 17:51:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIG7o-0007ui-EV for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 17:51:48 +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 1iIG7n-0007uF-Rw for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2019 17:51:48 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iIG7j-00078U-HW for pgsql-general@postgresql.org; Wed, 09 Oct 2019 17:51:46 +0000 Received: by mail-ed1-x544.google.com with SMTP id y91so2831398ede.9 for ; Wed, 09 Oct 2019 10:51:43 -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=9NoACESFo00Hn12mitQM4BMK5aFEo7CYSiWpLhN62TQ=; b=nHHqsoHa80QOO4etkKLovk2+fBEjXJgf1EWqreDX6+DOCkq2v3ash36zYJVngOoZy+ zLoXTj0Wjv46zoxXeVP1jCHeLLBO1db9Ycfzen2k1t5QaSnQTlMAHZRFWbnxHypy7br8 2nDHjSJgy0FJhJBw1KnHKXevjZGMk8jm48dOB09s5ursAYx3j7BxyvWPzCPtem3zrgnZ 65MYgXMzGgJSXrJIoBiuzKXJOpHtVTxay5tqop4WL2vqlcKi7YUOxNwWU9ED0xR9GyPY LhfwrhJH+V922P28Bgw7tR1tCiK7kh7/6ghQuJN9XeSEIKZEjbNWd3AngdWnHyhSLyd0 xgJQ== 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=9NoACESFo00Hn12mitQM4BMK5aFEo7CYSiWpLhN62TQ=; b=bIHg5SVSKhfgqljOf7T7C1sU+xvCr/z4DHilLmNNILDT1MchBC2PG4U/XIvVCkqoVP /5pgZah9oHuSUx1fLyrc9v4s5DrptinQecloui0pFkxOeOgwOdGQ+UC88vUNvupK9K0u vfcy9pq4zbKk/C0ZKY665MX7EEARfqTqqd3vL5Oee8lpBESuJPR6l35vIdPBtmphIh0Q YK0e6KyFOP6XxynGfMAsGdD24XEsm11CBPSdO2EJTTxgNODUtFXkiLv8RnBCe7hjg9ip ryl/CAezaGlx4reAK5shy59yKfRSjA3ccGdy4d/g31yjU/rR9ZFnalOZ9I7uZ59u1JcF f5rA== X-Gm-Message-State: APjAAAX3SpADhkD472bY8uUg8CF+76fAFdyH2HjTrJDYUFFGAAs3msL5 iaUEDf+XqUj9aUg6iMdRExtOKA== X-Google-Smtp-Source: APXvYqzVlIl1t6abLM0JL/+P1uyRSkA8NnssJ+jt21LUCGZFHHV8flCARKcc3Hx7asi/utnyO0IbrA== X-Received: by 2002:a17:906:c57:: with SMTP id t23mr3998117ejf.219.1570643500932; Wed, 09 Oct 2019 10:51:40 -0700 (PDT) Received: from nimloth.alvh.no-ip.org (ip565b123c.direct-adsl.nl. [86.91.18.60]) by smtp.gmail.com with ESMTPSA id o22sm454253edv.26.2019.10.09.10.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 10:51:40 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id B5FD6300825; Wed, 9 Oct 2019 14:51:39 -0300 (-03) Date: Wed, 9 Oct 2019 14:51:39 -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: <20191009175139.GA27341@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-07, Moreno Andreo wrote: > Unfortunately, it didn't work :( > > db0=# select * from failing_table where ctid='(3160,31)' for update; > ERROR:  MultiXactId 12800 has not been created yet -- apparent wraparound Oh well. It was a long shot anyway ... > Since the probability we are into corruption is very high, what if I \copy > all the table but the failing row(s) to an external file, drop and recreate > the table, and then \copy clean data back inside? Yes, that should work. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services