Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVbsI-0006NR-2P for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jun 2018 12:06: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 1fVbsG-00041u-Kc for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jun 2018 12:06:08 +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.89) (envelope-from ) id 1fVbsG-00041j-Bb for pgsql-hackers@lists.postgresql.org; Wed, 20 Jun 2018 12:06:08 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fVbsC-00007S-2i for pgsql-hackers@postgresql.org; Wed, 20 Jun 2018 12:06:07 +0000 Received: by mail-lf0-x244.google.com with SMTP id d24-v6so4557161lfa.8 for ; Wed, 20 Jun 2018 05:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Y0WGAnk57I7wGTxIt58zSaYCMWTaQNIyKMkE695JbhQ=; b=QEKisskPP6GJmrw3O1TXGMwaXNpsskuOZt8+L/2p/8PivSkucrn9xmdbY/Zc3LtaFl PackMfTxhggccUx53JLEkNHm2g87Ui/23bdni8zDgIuT9sib2+fUv6CPA7MrQL0bMGz8 SjoSUd9HOfzehXzEfmqE4oVHqba7jTQ/Z9MC80UjSMaAPmgSuLLYGYnbFh8xLtu0QiTG 4UQVbY7UyRfq/4Dsh7HQ6GmxXsegadNGWEB0lmu7wr6sbx+tYwCHQCI5lOWnkbzmsgN+ ZL5Nb26vtQhvIHDQP7PLEj/csrxD2LCBFducg4rRMypa/AonEtY2sOpaRnavaKQvKAS6 mNAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Y0WGAnk57I7wGTxIt58zSaYCMWTaQNIyKMkE695JbhQ=; b=AWmoB9jcSV+C3PaRySEqcv8giiOK8gSmeLSlpWR14J9PLbmhsB5v3DHOkJVBJOpjk6 lGm0da38GMWFXiRj9EPCiaVLIm9tuqdkOqeYYl/1PsUiLr73q9sROVptdDJsVveKqAKj w1EZrfJEYhLuEOThclr+dM2I2swGe9VGBTLvTAqLPhzP6AYB6sBMcAZj9/nP35MqGIka xLSG2JgwWCErWQMp0FlZNwD4VANWjaViHw2Lyq0uxc8foKmPHlTaSw4hcsYRZQRkaLOi KxtYuMaBBKXWZ5HY/z7BVncWoxJhn50u2vqcERbpQADNFm/dv6jg0bfgor7gem+9WHnL Pkyw== X-Gm-Message-State: APt69E0xL7ycu+tCNx2pimrjw4nzZQs2I9vYurJAL5x5DVA7n1r6VcXa Ab83YamNgdTxNR7DwRyADAQ= X-Google-Smtp-Source: ADUXVKKWkwc2F5/Nj94Cp/1pKLbrnu9P3E6a9Wqj39FrHj+QB1XbW2MJ6tVNExGKSSC+Xtj3Q4u2ZA== X-Received: by 2002:a2e:5549:: with SMTP id j70-v6mr14838276ljb.147.1529496363158; Wed, 20 Jun 2018 05:06:03 -0700 (PDT) Received: from seb (loft24341.dedicatedpanel.com. [62.138.16.238]) by smtp.gmail.com with ESMTPSA id f7-v6sm386961lfh.69.2018.06.20.05.06.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 05:06:02 -0700 (PDT) From: Sergey Burladyan To: Andres Freund Cc: Matheus de Oliveira , Tom Lane , "Nasby\, Jim" , Alvaro Herrera , "pgsql-hackers\@postgresql.org" , Maxim Boguk , Peter Geoghegan , Jeremy Finzel Subject: Re: found xmin from before relfrozenxid on pg_catalog.pg_authid References: <20180525220531.43ia22l2d3jspbng@alap3.anarazel.de> <20180526204506.ql5pesq6t2jbpuy5@alap3.anarazel.de> <842C9FB7-B9FB-43B9-AF28-9C5324F23ED8@amazon.com> <10046.1527441741@sss.pgh.pa.us> <20180527200006.hbwa2h7nfuunmnza@alap3.anarazel.de> <20180528195206.6vqxcdhvfurlyhda@alap3.anarazel.de> <20180612003914.qlnrpovmbhorexik@alap3.anarazel.de> <20180612183150.sbja6go5lw7n622s@alap3.anarazel.de> <20180619155329.avakfyuavnznxypb@alap3.anarazel.de> Date: Wed, 20 Jun 2018 15:05:59 +0300 In-Reply-To: <20180619155329.avakfyuavnznxypb@alap3.anarazel.de> (Andres Freund's message of "Tue, 19 Jun 2018 08:53:29 -0700") Message-ID: <87a7rp1x3s.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > You should first make sure it's actually this problem - which tables are > holding back the xmin horizon? After that, yes, deleting the > global/pg_internal.init file is the way to go, and I can't think of a > case where it's problematic, even without stopping the server. Thanks for clarification! I also have this problem, BTW, autovacuum does not worked at all: # select max(last_autovacuum) from pg_stat_user_tables; max ------------------------------- 2018-06-06 00:48:47.813841+03 all it workers stoped with this messages: ERROR: found xmin 982973690 from before relfrozenxid 2702858737 CONTEXT: automatic vacuum of table "avito_delta.pg_catalog.pg_authid" ERROR: found xmin 982973690 from before relfrozenxid 2702858761 CONTEXT: automatic vacuum of table "avito_delta.pg_catalog.pg_auth_members" and it does not try to vacuum other tables. -- Sergey Burladyan