Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wTfss-000gMc-0R for pgsql-hackers@arkaria.postgresql.org; Sun, 31 May 2026 13:07:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wTfsp-007bBe-1s for pgsql-hackers@arkaria.postgresql.org; Sun, 31 May 2026 13:07:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wTfsp-007bBN-0M for pgsql-hackers@lists.postgresql.org; Sun, 31 May 2026 13:07:15 +0000 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wTfsm-00000000Q5C-2Kmd for pgsql-hackers@lists.postgresql.org; Sun, 31 May 2026 13:07:13 +0000 Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-51749f65b58so7696021cf.0 for ; Sun, 31 May 2026 06:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780232832; cv=none; d=google.com; s=arc-20240605; b=W/poR2MADmKnSp+B+rm/My8NLLfPnyGT3L4a60D70TX4mzPs5QxTn05pIbkfIE/wyg Rx+mcBAZuheBLuFZwGPSxcQv96oONrQ6A+HtmN3NDLVnifLcCoScF35D7J98fmPLuFvv tEmjmoW+SmHRcySy1YVfpZJ0Dwx2Z6Eg1sMD066shUUr66mLwz1Y50uJQ/Sp8GBshY82 fXrT8ZfcPvwj1qEFslK3OrcHgvPpQFY4bkp23Yz6XChSEAbH/BXeLzHRktJ0wzX9v8JJ q6jMiigafTrWFryAdqILOt3bXf8X839/Cnazyrh9accC3Ps6xVACcnRqTIlKiP7xoi7p FfAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=f3rD0sTQPEbw01rAFkm0uv0b87pKLsgvW7eIxSx25xY=; fh=BfGUydLIs/G2WtBSD1TNq396vUFXRvtgyAoTY8YGDiI=; b=i04X9X7BkWZM3VsLglnjYQDtyU5mnbdV/y+kyOkIZ2vgqxnm+HsKVr1pkXUzNQEvqs KG0q7zmcDw2/hacgVNNBAa6Ufjj7MRa7be90yUNn094uMwwWzA+oU6V+xXxyjtPTiINY RhHBA/IpY4pk6v0LgDHcEU1RGVqrDt2czrVTi4LiIguC/HmVHJ4Y6GbEpgYfoSbA65gd CGyl8t8Bl75yLI30m+Gwg4cUoL84gJj9Z7Qw+ktP/FXnSLpsA4V4MqLqYKhPV9iOlT4s C7ufFL44dnZMIBkbeiptMbzyezGAlaBYgjJW6HgsQpy5HM6/RFkqEtuNfzqWfWx5oj7J Y3rg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780232832; x=1780837632; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=f3rD0sTQPEbw01rAFkm0uv0b87pKLsgvW7eIxSx25xY=; b=mTWAsaL/3DruNp7scEt0is3RmVbvi+7QG1jS3p26oli7cIivkDwQJhF8+AHQVULkuD +GxECbBtwATOW5svw/FaI0Q5fnpXTIO2fxRZHzrj59aivRd6y1oCGXcgpaH7DhAKGttF fZHzYS4ArxdlXIGjiAPZL9YXGkGUytP5Gk1sX76MRrHINxbyL3YXrrrcnOFeaR4yBsLW 1E5eNeS4txTPxCKhUSfDftpQIEStEPrSWRFpMotIW+yfr2XBVrT/Am2VPXRX5f9moEnq OxfA6pq5woAAykS/HgiCOhHRfzbwrZzW/4RRoJCHxCnkGXdDN2RXmXagkOJN8UnSmCMg w6lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780232832; x=1780837632; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=f3rD0sTQPEbw01rAFkm0uv0b87pKLsgvW7eIxSx25xY=; b=JLgtKqVFDsPdL4wmILvYHUw36REU5rMprSHIrx4G+g/fjWcaWNtnosugzTTKMTwRfi NXwRdyHz0Q/3mKfykB4hD4od53JK2dvSa4Zt7R6xqN/R2O4D65jUeG9ULZc4RHXpsqNK KQpugVDLFvsJ8Ny5mOCWNTnP+jPT0oMQYlSW4jC/XKiSTQyI1m3nIp4E5I6Ux6I8LhQo DeVyvWfQ6HxuY3IRSScmaGueVUdqp9+In82vGCMTnD043mjX8aRN6655EaUqe+ZRwTni EV79bOrTFrc23TuIOrT8B0R5E7QRi8E8oSdicedrbqQDcCozGt7FsNfVjFTyk+djeQfR wxaQ== X-Forwarded-Encrypted: i=1; AFNElJ+pibqfhNRC8emstBYNcZ86vLCKKHYU071xSjQAzzlk6fpZ29AP+LdRoR4nCZfMDzC+2VLEx17pnNGmPXUJ@lists.postgresql.org X-Gm-Message-State: AOJu0YwVmavgxiF0V/tkqqPZUSwLr4agSutqeib8iHA9/CihGh067jwC 9pSOO1nIfN+lMUHBIBdQwOURAGSd076r2Px1SwOsAHeo7WdBFHTgHIfwtW2dnd8/xvbxDdHuM9q 8hXAIsBJRJp8SJPxFSu7IyiAkzGz0wg== X-Gm-Gg: Acq92OEmQDAPDg5xTPkCzEsnoMg29e6p/rfdV241kX17gnLhEK4Zd5ijeyAoOeSQnut sO3G9kR+Ze2wC/3vtgrJm+DakhICwdC8BwtTe9sD5Pf1FcjCl1B0YW8mBd8YJ2DaG1rmIr6TdwG MnHf6+K2heLBC+JLx941dtxPgiwrcVS9HdG+uzlqwqHbQAn/3tLYsSDAjg0cvkjOzeDSrXUZkft BbBd60Etz3hRK14/+GG8D/47mJTileVirFiHCYj4TWIkdtenQxXq07npEyqAkRiw2IwlW4woQ7n J+miCtVadCxFBDjQ3QZVfR1I3WXXgii4hVu3A+1JHjKS X-Received: by 2002:a05:622a:1f05:b0:510:1ae7:88b3 with SMTP id d75a77b69052e-5173a5c085dmr96933381cf.4.1780232832078; Sun, 31 May 2026 06:07:12 -0700 (PDT) MIME-Version: 1.0 References: <6634e1b0b5b74e5c2e3b06201120a81e11d82a55.camel@cybertec.at> <3bnBUxwx2npXqvHL0trI11LOOvzQ7LI0GzWqbaj5SJnk7DTb1uzStGveKwj0JJmBW4ebzGIF3az7of4I4rQeaO_PRqDnnClCduPyjM6gPgM=@scottray.io> In-Reply-To: <3bnBUxwx2npXqvHL0trI11LOOvzQ7LI0GzWqbaj5SJnk7DTb1uzStGveKwj0JJmBW4ebzGIF3az7of4I4rQeaO_PRqDnnClCduPyjM6gPgM=@scottray.io> From: Shinya Kato Date: Sun, 31 May 2026 22:06:36 +0900 X-Gm-Features: AVHnY4J_-SFgmIM1V-SygMb24MAc9VoYW8e8a3pEnRHuCH9k7BCjxz-ADi8OVis Message-ID: Subject: Re: Report oldest xmin source when autovacuum cannot remove tuples To: scott@scottray.io Cc: Laurenz Albe , Japin Li , wenhui qiu , Sami Imseih , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, May 30, 2026 at 11:31=E2=80=AFAM Scott Ray wrot= e: > > > I guess the overhead of one more scan of the process array for every au= tovacuum > > run if "log_autovacuum_min_duration" is non-zero (which is the default) > > is acceptable. > > > Could vacuum compute the blocker during ComputeXidHorizons and consume it= at log time? > Avoids the extra scan, and binds the blocker to the horizon vacuum used f= or pruning. As Sami suggested in [0], I think this design is a cleaner approach because it separates the responsibilities of ComputeXidHorizons and the calculation of vacuum blockers. [0] https://www.postgresql.org/message-id/CAA5RZ0s%2BUUXekbeGcC-H71kW%3DMfe= aUCOV%3DyEWX94NXViO2-%3DpA%40mail.gmail.com --=20 Best regards, Shinya Kato NTT OSS Center