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 1lQnyd-0008Be-UB for pgsql-general@arkaria.postgresql.org; Mon, 29 Mar 2021 09:14:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lQnyc-0002Y9-TH for pgsql-general@arkaria.postgresql.org; Mon, 29 Mar 2021 09:14:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQnyc-0002Y2-H4 for pgsql-general@lists.postgresql.org; Mon, 29 Mar 2021 09:14:26 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lQnya-0000iD-09 for pgsql-general@lists.postgresql.org; Mon, 29 Mar 2021 09:14:26 +0000 Received: by mail-ej1-x62f.google.com with SMTP id r12so18295609ejr.5 for ; Mon, 29 Mar 2021 02:14:23 -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:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=1mQp86wFdXBlCmb0Vycd5D4lMWmabcxCGnSz5KJxpWs=; b=eB13aO0xP2bC3OmB6kYyzmAM0RaA3rDp3h0f8zowr/QtlKh/ItViAu5mdgBZxy9LD0 vm83MNCXPmiZSx9waXmA0e7ff7TgJz6Rzu8rzYyIV5VoO5MlMxfKHQmdmVo+0iiFiRNg FqG6P0RKevGZ4gE6yzTacn3TJdhNd6CBPCdJZU03jywNNKF97SBSvhMBhVPNsFoCz5na QLuy3avmpSFzG8VldyZI6wHDyVpmEERCdiI9SbQqBinSiY0EFabamXUEOvlmsxr6zXIJ xA067BDlSJzRKwC8Bgv/+8gwbVAaCr7rUEVGcr/k525z4R5Jom6mBKdFQPsGhiNBQfRq jZ8A== 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:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=1mQp86wFdXBlCmb0Vycd5D4lMWmabcxCGnSz5KJxpWs=; b=sCmVMVd/I6drXC77N5bpszHeCz32Oo7VSJ0PksO3Oza0+X4+fDs2TzVaFoWp27ls54 TMrE33bm8DREhTRGvcT1cW/vo2ivsEmTt1bCYu3kXI4jPqMlKeUhNZmA5oa+dDxmDSl5 m0yXuwJw1d1o+/8ZXMS9OT6vX1oBWEp1lMt5yTp8GRP7AHemzLBipjIbV+EyDgof5SaI WcyRLx/SrZcvhDi2o0SAuPIg9Dbq7YBQNT5hjNMFJ7z61hMD4B55EaIOd3x8B4PgqaeQ XotFnj3hVeS5TQ7eUw3ehNpf1xH6RH80QPtTaf0ygEnC+YNLU0VWK+bKsTemBf/O8dKH OfPw== X-Gm-Message-State: AOAM530emJ83Lo5PfFzs0wYmnGR6eTnsFX9UftLjDFhrsTYfaQfNgi/E la628dqwJViMGN2vptGf6aHyBw== X-Google-Smtp-Source: ABdhPJx47s3QK422MMYbQhwI1fnmp+t7h4FRSCUsPlDgNaKHZBLWsEq+eHedbro8LgCQRdymUrm82A== X-Received: by 2002:a17:906:5d05:: with SMTP id g5mr27203657ejt.489.1617009262781; Mon, 29 Mar 2021 02:14:22 -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 f9sm8499329edq.43.2021.03.29.02.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 02:14:22 -0700 (PDT) Message-ID: Subject: Re: questions about wraparound From: Laurenz Albe To: Luca Ferrari , pgsql-general Date: Mon, 29 Mar 2021 11:14:21 +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 10:33 +0200, Luca Ferrari wrote: > Another thing that comes into my mind as a doubt is: why are all > databases becoming old? I mean, I'm provoking activity _only_ on > testdb, therefore other database such as template1 are not doing > anything. That one I can answer. 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". Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com