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 1hr4TH-0000eA-Jc for pgsql-admin@arkaria.postgresql.org; Fri, 26 Jul 2019 17:57:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hr4TF-00051K-I4 for pgsql-admin@arkaria.postgresql.org; Fri, 26 Jul 2019 17:57:33 +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 1hr4TF-0004xW-7b for pgsql-admin@lists.postgresql.org; Fri, 26 Jul 2019 17:57:33 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hr4TB-00006w-TG for pgsql-admin@lists.postgresql.org; Fri, 26 Jul 2019 17:57:32 +0000 Received: by mail-qt1-x842.google.com with SMTP id n11so53426601qtl.5 for ; Fri, 26 Jul 2019 10:57:29 -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=0rhGGHSyRpqF0xTe5arj5wKrlWkkdIUH2sIIirfGI4E=; b=aaaNzCZ11EugJHCyRUaCdAIdrPPyu6FD7sZ4N2ogbqWENP+2UptR45h5mRV4UIzIyD w8+8vKmgpT74WUgEJjGfyUMoNAWdS1f56iuGvDMNSYaA7I49hexoOq2BxaLJXAkVbbEo SlDsjhKmjyqY/ta5Npabur7rTh0Z6jtDz7gW12xtQbjRy+4NhP77p5zf9glUMoV0egXf 9TLeu/W1CyD2R3pVZkPZ3BAQ9wFoeaLVQE82b+0JlmCuTCwWke0OsXQUkwqJcr4Rozri cQ8kmz2BecrhajojKgrxNssMF0iANar+8kqjvX+IyoqFtIxqDdMNt2Z3XHYOKMRv6AfQ D7kg== 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=0rhGGHSyRpqF0xTe5arj5wKrlWkkdIUH2sIIirfGI4E=; b=Hd2cqMqgND4UEYi5x9aZR7PNyIiBkp5kg9qO9QtBsOA7K4zP+6Mz+NKaX7M/JMGfuX 5xUMkCeJr9j0e63rjBq6+WCTR7qlL/3qh3TfnnIvdfqh+R+tUQcixpe/CPj1EGSyWMqo +c5yy5vNdDAOu1kI8QetH36iviAVXe2uPfTl22o78XwDJ50PjwJ0cNemEv8OT5DnGAkd US3qW9x9fykPY4v+Z18Q3QUpstT4AVoeEci7dalxpuJhto65konJVFE40tbJ6yYDw7Mr pGWBSq+h3IyE9vEtaZVzaf/8kEa/2O51dnna/qzOKIPoNL4DVpiGAY2Lw3ZR7n6qPpbQ XH7A== X-Gm-Message-State: APjAAAW634z9WsMnAIW/oz9wjrk7K48Kp975KaJLkq5FP/87zmkBUjl2 51xbNItxFP26ooiFouuH6FD1Ag== X-Google-Smtp-Source: APXvYqx80pASbkm97YYFw9W+4Zkz9PWVgDe5McXIn+Cc2JGDyoSSi6THzziPFsUgEPNTRQeZETMnAA== X-Received: by 2002:ad4:5661:: with SMTP id bm1mr69246677qvb.119.1564163847627; Fri, 26 Jul 2019 10:57:27 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([177.154.139.198]) by smtp.gmail.com with ESMTPSA id l80sm4165477qke.24.2019.07.26.10.57.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 10:57:27 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C81D7120CB1; Fri, 26 Jul 2019 13:57:22 -0400 (-04) Date: Fri, 26 Jul 2019 13:57:22 -0400 From: Alvaro Herrera To: Yuri Niyazov Cc: Pgsql-admin Subject: Re: Figuring out the correct age of datfrozenxid Message-ID: <20190726175722.GA7885@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.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jul-25, Yuri Niyazov wrote: > all the tables have a very reasonable age, but the database itself still > has an age approaching two billion. So, what do we do now? I think vacuuming any table will update the database age. For instance, try creating an empty table and do "vacuum freeze" on it. > Were we wrong to truncate and drop this unneeded table without letting > a vacuum on it finish? That seems an appropriate measure to have taken You just need to have the system figure out that it's gone. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services