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 1nK756-0002QR-5e for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Feb 2022 23:18:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nK755-00049k-1F for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Feb 2022 23:17:59 +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 1nK754-00049U-Jc for pgsql-hackers@lists.postgresql.org; Tue, 15 Feb 2022 23:17:58 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nK74z-0000Ra-GM for pgsql-hackers@lists.postgresql.org; Tue, 15 Feb 2022 23:17:57 +0000 Received: by mail-ed1-x52c.google.com with SMTP id m17so797105edc.13 for ; Tue, 15 Feb 2022 15:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zOy4NX1ghuxpknhnKcG30p+vwynYy6IlZJukuAbaUT4=; b=yUSmeZDK8aEOAleza7ZdfMoQMySiU7jE8CmJFLnjhdY2qCkg3neT9GS6vYrZsReMvH 1fyLAEQVIqywe6wVDjHsrp5ZNbC2gqpd+W49ejAuVqX9QyvD6PwjspK7pRgz7YGTqwz9 RZxm2hGSdaWFDyuFxKDJb3qG1gR05mvB6rIY8VtYF8zYWr8TtapezZppEY/1a1PEsMt7 80JJrmsBZNzgkd84fw0Os8U8XoZtkvzEU+wmC6mShHdI4ZQg/NQLYQSWl/fhPdWjpRhW GtTQ/+Qo6ilXS2aui9KUwTbLgwLIDJyB6VLtT7tIlHciJXSs4AhmOtf9FpX4hzpt4dCD DAEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zOy4NX1ghuxpknhnKcG30p+vwynYy6IlZJukuAbaUT4=; b=FpsGDDQ+1oS4KCzWkTOOLeP5TUxdbrMO2vtt66b9phK52xdWvqIZ+SkWrEocNcRpXh Z60FNoqlgeJ+aJPJBl/vKE71aLch4OyW1aS85NkNvduu4ggb/qUdH6ugZEl3rT0bCrsx G4G+bWUUvAYM65TS4n+tflcSixmEDdKWnQdY2xyD9d2Ny+jvUbBZVCCzsR63VLCApIb8 Y523otm4l/8AWYiSoHLsUBFthyyFemEJAJU5Ku6LRZm3oVnYClYNeGNpy9W/khD2t9KB K+/7UnVJtMs7bLJ2Zynb3+3BEX86qZaieUFw5Lv3KKHd4xgTaKc+aqPZxgcan5XDl4fu 85nA== X-Gm-Message-State: AOAM533wsIJB2kyC37gGGAqzgKlQPpOATvdlN3C4oDMaWpRKlqGOroIz y5UY1/w2Ma8WdJ3r4xUY73dzZ8FTSGlVexZXOuDEQg== X-Google-Smtp-Source: ABdhPJzHh5TVuPqSnjjF039puoIO6BBlbKXcl3Rr/h/ENmlzh1YspIcoqlWi2tuiF/WhaLvAggOs0smg6Hq2HRtEuQY= X-Received: by 2002:a05:6402:b8f:b0:3fd:90e9:ddac with SMTP id cf15-20020a0564020b8f00b003fd90e9ddacmr123072edb.405.1644967072002; Tue, 15 Feb 2022 15:17:52 -0800 (PST) MIME-Version: 1.0 References: <20211210015616.o242b4xchhpglfcy@alap3.anarazel.de> <20220203215048.rmwjzixdzaetedxq@alap3.anarazel.de> In-Reply-To: From: Peter Geoghegan Date: Tue, 15 Feb 2022 15:17:25 -0800 Message-ID: Subject: Re: do only critical work during single-user vacuum? To: John Naylor Cc: Andres Freund , Robert Haas , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Feb 15, 2022 at 9:28 AM Peter Geoghegan wrote: > On Mon, Feb 14, 2022 at 10:04 PM John Naylor > wrote: > > Well, the point of inventing this new vacuum mode was because I > > thought that upon reaching xidStopLimit, we couldn't issue commands, > > period, under the postmaster. If it was easier to get a test instance > > to xidStopLimit, I certainly would have discovered this sooner. > > I did notice from my own testing of the failsafe (by artificially > inducing wraparound failure using an XID burning C function) that > autovacuum seemed to totally correct the problem, even when the system > had already crossed xidStopLimit - it came back on its own. I wasn't > completely sure of how robust this effect was, though. It seemed worth noting this in comments above should_attempt_truncation(). Pushed a commit to do that just now. Thanks -- Peter Geoghegan