Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQvR6-0002MV-RW for pgsql-general@arkaria.postgresql.org; Mon, 29 Mar 2021 17:12:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lQvR5-0007uF-Qj for pgsql-general@arkaria.postgresql.org; Mon, 29 Mar 2021 17:12:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQvR5-0007u4-JG for pgsql-general@lists.postgresql.org; Mon, 29 Mar 2021 17:12:19 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lQvR3-00039Y-Es for pgsql-general@lists.postgresql.org; Mon, 29 Mar 2021 17:12:18 +0000 Received: by mail-ed1-x533.google.com with SMTP id bf3so15051325edb.6 for ; Mon, 29 Mar 2021 10:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Xf7WmCgTIHn3sE2rF3BR6aLEzMpPygjV2Qid4Y5D+RA=; b=R1O61WR9tV0Y6XPTEXM0P8Fue1H0214OqbsH5BYiUgYj2IpD1ZvKx8VwDMGdoPnnsZ Td4QCStijvYdhzEpQdnGT5lcFTra3pbEJuLYUyq4D/y1Bab6Av4b89j2bugALiOMfYVV afR7W3yo5NVcRq/EXqBjbaDiYk869wz2T5i6EfCAyZiatUkhKf4ccu36PMng3ue+Vg9T kVHz92x79CHctCaANq6dcB7dmK5myKVf1S+7RzLDNGScWvHCMr+bVvNgLOfstA+j63Na ozRZkD4SOkIaFEzaPvFBoxElpkvLbgAT0vul1vDEAQaYf2Xv+/LL9wRcDwg+PM5xkUYV /Vkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Xf7WmCgTIHn3sE2rF3BR6aLEzMpPygjV2Qid4Y5D+RA=; b=BtFYDvO5J/B11zJTN6DoJ0JWU06Ysm39XE9PnnchIu8UMDevlKhrei8DFVb13g7DkP X6eSqxGNcCkIydUpqixh7ep3rAXVdjiKD9K8gHFkZEKBAAMXuGctH7Ol1bt+SD1xaQvb k8ioh+T+GK/LrbxBuJMfpCXGkvQpwBtT2fOEwkub7q4NxTXWUfpLYrdE3sfK16ZDq+iI ilDx2mr30YVYFhjvGyB7MT1gVJy606QYHA/GqGnc4XIMK2wERKnlx2PnZ2nSPOc11hPy myGPd3C5bY6vxHk6yYG8c720mL4sRcMMrs+dbFWe2hc2QRIESp9KL6o1T01rqnGqfrfb 34wA== X-Gm-Message-State: AOAM530fkhzxWbfwavJPTEC10GAlwLDyj3P+gN8Rfw7xHPVn7z5lc3Om Ey8E7r2OkJnd2HieUAwqy9B8wA== X-Google-Smtp-Source: ABdhPJx4tap2O3HFU97rf0VFBGd2FSy5K3p51uyvhuaZ+NERDr+SXBjpuBe8tv3O3E3dmgfuVZT+xg== X-Received: by 2002:a05:6402:304b:: with SMTP id bu11mr28666265edb.157.1617037935992; Mon, 29 Mar 2021 10:12:15 -0700 (PDT) Received: from localhost.localdomain (217-149-168-72.nat.highway.telekom.at. [217.149.168.72]) by smtp.gmail.com with ESMTPSA id d19sm9366990edr.45.2021.03.29.10.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 10:12:15 -0700 (PDT) Message-ID: <88d01a3bf0443a78c66ff86e41a9dba94eb06cfb.camel@cybertec.at> Subject: Re: questions about wraparound From: Laurenz Albe To: Luca Ferrari Cc: pgsql-general Date: Mon, 29 Mar 2021 19:12:15 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2021-03-29 at 16:58 +0200, Luca Ferrari wrote: > > If there is no activity on a database, its "datfrozenxid" stays > > the same. So, as transaction IDs are consumed, it is getting older > > automatically. That means that even inactive databases will receive > > an anti-wraparound vacuum occasionally. But that should not have > > to do anything except advance "datfrozenxid". > > Thanks, but this is exactly my point: since inactive databases are > getting older, why it appears to me that autovacuum is not freezing > them? I mean, in my experiment age( datfrozenzid) reports the same age > for every database, even the inactive ones. And since there were > inactive databases, I was expecting emergency autovacuum to be able to > run and freeze them. Or am I wrong? I didn't follow the rest of the thread, but autovacuum should handle those databases and advance their "datfrozenxid". Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com