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 1pUeHL-0008Mb-Qr for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Feb 2023 01:50:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pUeHK-00081i-Ma for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Feb 2023 01:50:42 +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 1pUeHK-00081Z-8g for pgsql-hackers@lists.postgresql.org; Wed, 22 Feb 2023 01:50:42 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pUeHI-0004mv-0d for pgsql-hackers@postgresql.org; Wed, 22 Feb 2023 01:50:41 +0000 Received: by mail-il1-x12b.google.com with SMTP id e10so2739157ilu.4 for ; Tue, 21 Feb 2023 17:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=SLAPCTHAoiTT2fqxMb7w08f51levbLEwsMo0VPAsnlA=; b=ZveEJylscQcEGg+pARIMQtLVaMX66bWRH2g933GgnIngFTOdXrdOu4oXVQ1xDZ1GFy SnZNMDUSwUV3N+IjegyUkr+FhHBN3DASj+cn3EhdLBQrJ59TohT4+gHLoa5iMrff/5cv cd7KjPCV6qvcxb4NWgETm2nx2JvcnQG2Zma9x3xxdLpkc3oOyfl1UlhXmfohVQUTeKg2 zXbYIoDkr3cYeRiXXyqvUFkisKmUcjddim48QKc4F1I9wMEzAGsV1+abf9cyGT8kH3VY Js9vpIw6tFJnGNGkT8zhVTpCwyqwinlzq07EI2PkMzUxDDcWpNVClbT6RLb+lA8m+SRt p3xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SLAPCTHAoiTT2fqxMb7w08f51levbLEwsMo0VPAsnlA=; b=C9/5Y5ybzAFeE8U3khm8+00IMlWCcXUebT4c6LE9hwx8Tw/Ih8Gw+efB5iBQjWd4/w RIV1mKzdVCWaSATaXc7qircyTH+g1tF1tIXCsBJ28LgBFfVbGqf5KKt2XKwhxCMb08e7 53H7NTtbi4v7WaEdFNMZlczUuVeBLTtar4Fe4S/7bE/FIJKEtAn020cCl88K7cj5vxts 8v1LGcjehBO+2aViic86KWTXQlIAL/jTS9Dc5ESOSJRsotRtRJr/K7t/Ru+7Yjiiq9hq 0WojDSkmOnP9Br0YwBb48V7uS9bv1GRww0X2twkkqr9vXZDWvAjZ8TEYlZRO5AiYeZ9a XPpg== X-Gm-Message-State: AO0yUKU/SFO6jmr1QLhbMZEBNNcJje09+oYQGS/kYlrMJuM9wXKMROyv TtS9CH5BG3+2DmK7x2pWR35d7g== X-Google-Smtp-Source: AK7set8gq8Etx/jcL5/VyA+XsFg69aOs6I/qicVy0xe0TkjYol83AIJZkJuvTTKOoWcjuN57wZ1Wug== X-Received: by 2002:a05:6e02:168f:b0:315:7004:3e48 with SMTP id f15-20020a056e02168f00b0031570043e48mr7626846ila.10.1677030637579; Tue, 21 Feb 2023 17:50:37 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id n22-20020a02a916000000b003c2b76fcdf2sm880931jam.52.2023.02.21.17.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:50:36 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id CED6D800C3A; Tue, 21 Feb 2023 19:50:35 -0600 (CST) Date: Tue, 21 Feb 2023 19:50:35 -0600 From: Justin Pryzby To: Andres Freund Cc: Kyotaro Horiguchi , melanieplageman@gmail.com, vignesh21@gmail.com, lukas@fittl.com, alvherre@alvh.no-ip.org, magnus@hagander.net, pgsql-hackers@postgresql.org, thomas.munro@gmail.com, m.sakrejda@gmail.com Subject: Re: pg_stat_bgwriter.buffers_backend is pretty meaningless (and more?) Message-ID: <20230222015035.GQ1653@telsasoft.com> References: <20230124.172203.448918351330829200.horikyota.ntt@gmail.com> <20230124223512.xqp7tjgqvzqokaxq@awork3.anarazel.de> <20230125.165617.724951472557617342.horikyota.ntt@gmail.com> <20230208063814.boyh5ibydbfuo2uk@awork3.anarazel.de> <20230209050319.chyyup4vtq4jzobq@awork3.anarazel.de> <20230211182437.ype5tk3awen2htvw@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230211182437.ype5tk3awen2htvw@awork3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Feb 11, 2023 at 10:24:37AM -0800, Andres Freund wrote: > On 2023-02-08 21:03:19 -0800, Andres Freund wrote: > > Pushed the first (and biggest) commit. More tomorrow. > > Just pushed the actual pg_stat_io view, the splitting of the tablespace test, > and the pg_stat_io tests. pg_stat_io says: * Some BackendTypes do not currently perform any IO in certain * IOContexts, and, while it may not be inherently incorrect for them to * do so, excluding those rows from the view makes the view easier to use. if (bktype == B_AUTOVAC_LAUNCHER && io_context == IOCONTEXT_VACUUM) return false; if ((bktype == B_AUTOVAC_WORKER || bktype == B_AUTOVAC_LAUNCHER) && io_context == IOCONTEXT_BULKWRITE) return false; What about these combinations? Aren't these also "can't happen" ? relation | bulkread | autovacuum worker relation | bulkread | autovacuum launcher relation | vacuum | startup -- Justin