Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5XMt-00083E-Bn for pgsql-general@arkaria.postgresql.org; Mon, 09 Apr 2018 14:01:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5XMs-0004Dh-2h for pgsql-general@arkaria.postgresql.org; Mon, 09 Apr 2018 14:01:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5XMr-0004DX-O8 for pgsql-general@lists.postgresql.org; Mon, 09 Apr 2018 14:01:57 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f5XMk-0000XF-DJ for pgsql-general@lists.postgresql.org; Mon, 09 Apr 2018 14:01:56 +0000 Received: by mail-wm0-x241.google.com with SMTP id u189so19339691wmd.1 for ; Mon, 09 Apr 2018 07:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BFvShaM36GKq4vCqeJ7Rc6Wird8bu/9+FevHv7gb2Uk=; b=t9T4hWfNwXZ88tsNstc4M9UPjIwQqkvNgGEpYMkXu5VijG5JTOQCBdKG1arIMZrsuU zWcGNUpnwrfGKvfNt+qpBm8MUO5XggUIuh2Jzbz7S+6MQvxM+LfmAbDgKUYn4zYPd4hw I6PPkicfW0IXFVD6M4g9/GIvxdnpo2kuQAafTFWj6ygYilAxt87Rds+AXV601alOfOm1 RU+CipaEl7w4tgQpJamsOAtAPLoLgIeOl4YYIPt4fFk44rnWR/HmXzfJZeKEGLPOUr2Y n2JK4FNC2IBuVIL8rJVi+62LYwEGx+t1ZKJqXaUVRX3VSuUkfIAoBuWwHFaWX2aT/ibg pHUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BFvShaM36GKq4vCqeJ7Rc6Wird8bu/9+FevHv7gb2Uk=; b=XxArbtVdI7Ut1JYhc3ZUFpOXgROQZT8JlBOJrF1Rtq7oCEhnGcdw5FiBEV8ZEOkWpU tkF/jK3wwV1Vu+6Bc5yrCvfr8eKv+7nS+MQRpLDJ9s67Zgsfmekps0G42rnwbPyd1D2k cnDvA7rIzlgre6ME/UB5J6bHJME3BnrDRPEtoR20orhxFIFoTMFn0pGzDYoVgtqzZqhq q9LWq8T5PnM/dEtortu32viBofPtCAH6GkaC1CX/JwvPHL1jPACJJtdl2Uc+znOZiXK4 biAOyHpmg8/tL7nUWtm+bs5MFuvwMwE8fBHrWXUei8YDh1snOW+wLvkhJGjjJpl9017r hOZQ== X-Gm-Message-State: ALQs6tAEYehbUHSHlahXepcNVOCVOsPtGnJXAqPS1MGclJDrNbarGW01 l9WmY1fbwSVU7iZth15aVxLMb5oPU3Of1QxxvD7FKdVn0JnO/fzFLWoFCzuluLhH0qix1gACKbA a0WDAQw+TqRZQs5+JTxKu+UkZz0zUO1Hv7v1hbXRUofNZLAHYt6l3+jvBNYKkspkWSEuRhPiodu 4PaF+gKKw1KmMKCxPp X-Google-Smtp-Source: AIpwx4+wpt9GxSWqQBWq5uXvAz6BGIoGQTBxe9D4XHocIgWX3cG4jJd5pEEWaO3PrsW9PwIJljhEiw== X-Received: by 10.80.234.195 with SMTP id u3mr22033957edp.49.1523282507997; Mon, 09 Apr 2018 07:01:47 -0700 (PDT) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id g44sm390593edc.63.2018.04.09.07.01.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 07:01:46 -0700 (PDT) Subject: Re: ERROR: found multixact from before relminmxid To: Alexandre Arruda Cc: pgsql-general@lists.postgresql.org References: <0a057777-206e-b7d8-c078-4ca58678c6fd@2ndquadrant.com> From: Tomas Vondra Message-ID: <71793e11-d5cf-81a6-a8a7-60743e39a51c@2ndquadrant.com> Date: Mon, 9 Apr 2018 16:01:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 04/09/2018 01:49 PM, Alexandre Arruda wrote: > > > 2018-04-06 13:11 GMT-03:00 Tomas Vondra >: > > > > On 04/06/2018 04:29 PM, Alexandre Arruda wrote: > > 2018-04-06 9:39 GMT-03:00 Tomas Vondra > > >>: > > > > > > > >     On 04/06/2018 02:09 AM, Alexandre Arruda wrote: > >     > Hi, > >     > > >     > Some time ago, I had this errors frequently showed in logs > after some > >     > autovacuum in some tables(pg 9.6). VACUUM FULL or CLUSTER in > this tables > >     > show the same and not complete the tasks (showed by some > table bloat > >     > select). > >     > Then, I did a full dump/restore into a new version (10.2) > and everything > >     > is ok for a couple of months. Now, I have errors like this > again: > >     > > >     > db1=# cluster pc44t; > >     > > >     > ERROR:  found multixact 134100944 from before relminmxid > 192042633 > >     > > >     >   > >     > > >     > Like before, the only way to make the errors to desapear is by > >     > dump/reload the whole table. > >     > > >     > > >     > Thanks for any help. > >     > > > > >     That's going to be hard, unless you still have the cluster around. > > > >     This surely seems like some sort of data corruption issue, but > without > >     being able to inspect the data pages it's nearly impossible to > determine > >     what went wrong. > > > >     We'd also need more information about what happened to the > hardware and > >     cluster before the issues started to appear - crashes, > hardware issues. > >     And so on. > > > >     regards > > > >     -- > >     Tomas Vondra                  http://www.2ndQuadrant.com > >     PostgreSQL Development, 24x7 Support, Remote DBA, Training & > Services > > > > > > Hi Tomas, > > The old cluster are gone, unfortunatly. > > > > This server is a 128GB ECC RAM with a dual redundant hba fiber channel > > connect to a sotorage with Raid 6 and I don't have (apparently) any > > errors reported. > > Yesterday I did a test with one table:  some sum aggragates, count(*), > > etc, then dump/reload and repeat the tests the results (of querys) are > > the same, regarding the vacuum problem > > thats disapeared. > > > > I'm not sure I understand correctly. So you can reproduce the issue? If > yes, how can you share the scripts/data you use (and how large is it)? > If we could reproduce it locally, it would make the investigation much > easier. > > BTW you mentioned you're using PostgreSQL 9.6 - which minor version, > specifically? > > > regards > > > Hi Tomas, > > No, I can't reproduce. What I did is a simple way to "validate" the > current table data to see if a dump/reload > preserve them. Old postgresql was 9.6.5. The problem returns now in new > 10.3 installation. > I'm confused. First you say you can't reproduce the issue, then you say it got back on a new installation. So which is it? > There is a way to correct this tables without a dump/reload ? > > I'm thinking to reinstall cluster doing a initdb --data-checksums, > but I'm affraid about a severe performance impact. >   The performance impact should be non-measurable for most workloads. It might be a couple of percent on certain workloads/hardware, but that's probably not your case. The bigger question is whether this can actually detect the issue. If it's due to an storage issue, then perhaps yes. But if you only see multixact issues consistently and nothing else, it might easily be a PostgreSQL bug (in which case the checksum will be correct). regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services