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 1iKOyc-00086m-JT for pgsql-general@arkaria.postgresql.org; Tue, 15 Oct 2019 15:43:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iKOyb-000768-DQ for pgsql-general@arkaria.postgresql.org; Tue, 15 Oct 2019 15:43:09 +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 1iKOyb-00075w-3O for pgsql-general@lists.postgresql.org; Tue, 15 Oct 2019 15:43:09 +0000 Received: from evolu-s.it ([94.23.66.144] helo=smtp.evolu-s.it) by magus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1iKOyZ-0005xh-0Y for pgsql-general@postgresql.org; Tue, 15 Oct 2019 15:43:08 +0000 Received: from [192.168.1.129] ([79.6.30.247]) by smtp.evolu-s.it ; Tue, 15 Oct 2019 17:43:02 +0200 Subject: Re: Pg11 -- MultiXactId xxxx has not been created yet -- apparent wraparound To: Alvaro Herrera Cc: PostgreSQL mailing lists References: <20191009175139.GA27341@alvherre.pgsql> From: Moreno Andreo Message-ID: <409a55a4-e380-e5e4-a1a4-d7e69b50ab98@evolu-s.it> Date: Tue, 15 Oct 2019 17:43:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191009175139.GA27341@alvherre.pgsql> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit Content-Language: it List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Alvaro,     sorry for late reply, I've been out of office. Il 09/10/19 19:51, Alvaro Herrera ha scritto: > 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 ... It was a long shot, but it was worth trying >> 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. It did not work... I think there was some big deal with the cluster itself. To extract these small parts of data I had to SELECT using OFFSET and LIMIT. Well, the same query (i.e. select * from table offset 35 limit 145) run as it is worked well, but from the moment I put it into a COPY statement, it was messing again with multixact, even if I tried back the only query. It ended recovering data from backups (2 days old, and that's good news) Thanks for your time Moreno.- >