Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a2P78-0007DF-Hv for pgsql-admin@arkaria.postgresql.org; Fri, 27 Nov 2015 19:55:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a2P77-0001ZW-NO for pgsql-admin@arkaria.postgresql.org; Fri, 27 Nov 2015 19:55:25 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1a2P5T-000852-KM for pgsql-admin@postgresql.org; Fri, 27 Nov 2015 19:53:43 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a2P5O-0000WU-D6 for pgsql-admin@postgresql.org; Fri, 27 Nov 2015 19:53:42 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.104.53.52]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id E37CD40146A; Fri, 27 Nov 2015 11:53:29 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 2C9C96430; Fri, 27 Nov 2015 16:53:28 -0300 (CLT) Date: Fri, 27 Nov 2015 16:53:28 -0300 From: Alvaro Herrera To: Tom Lane Cc: Kouber Saparev , pgsql-admin@postgresql.org Subject: Re: VACUUM unable to accomplish because of a non-existent MultiXactId Message-ID: <20151127195328.GE4320@alvherre.pgsql> References: <62FE8F79-7278-4AE0-9FDE-0C0277A7B609@gmail.com> <20151127184936.GD4320@alvherre.pgsql> <5403.1448652828@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5403.1448652828@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Tom Lane wrote: > Alvaro Herrera writes: > > Kouber Saparev wrote: > >> Recently I spotted an auto vacuum that is constantly being run over a pg_toast table in the database. Interestingly the underlying table did not have that amount of writes that would trigger the auto vacuum every minute. > >> > >> When I tried to run the VACUUM manually it died with a non-existent MultiXactId error: > >> > >> db=# vacuum analyze verbose pg_toast.pg_toast_376621; > >> INFO: vacuuming "pg_toast.pg_toast_376621" > >> ERROR: MultiXactId 2915905228 does no longer exist -- apparent wraparound > > > Hmm, I don't think there can be multixacts in toast tables at all, > > normally. > > Couldn't creation and deletion of a toasted object within the same > transaction do it? I tried and couldn't find a way to cause one to appear. When a row is created, it has xmax=0 so when it's deleted the xmax can just be set to the deleting xact. And we don't ever update pg_toast rows, AFAIK. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin