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.94.2) (envelope-from ) id 1tTfFV-007eBx-Dr for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2025 10:49:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tTfEW-000JOc-Q1 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2025 10:48:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tTfEW-000JOQ-GY for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2025 10:48:48 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tTfEU-00017I-20 for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2025 10:48:47 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-436249df846so83976755e9.3 for ; Fri, 03 Jan 2025 02:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735901324; x=1736506124; darn=lists.postgresql.org; h=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=ZPmE4x90y0n/C5/xsjrbsl6PbMgtMY1PFDJH3HMGg8I=; b=hsWhn6JQq37/WEaa0dv/88SkJXG5bqTgnfeVQojBXAWeIOESZgJoe7RC0OoImi182e QCO9TNc2srv00IQrGpNuiUzHdMrfzx/xmU16SMMsI8PmEl4M+sK46xCjB0ZIpCWTlxRf ggiauMWh81SUhqvzOKzOLHgZp/1vlI9uXaRDlWlRse72pjzLaFiksz3xnJlUkZLzREt4 RF68tF5Op5//w9Cy2TLcOBXPB4hkj1/GiNiZQcG4LU7o2eD7Ahflx9b2Ec9TmefIGG1A NGJp+XHkjqf3+PuRaeTZJ4rV7BIij8mZg3ByCV1nNmX35IVJumj5POIGaX+saj11twnq YhIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735901324; x=1736506124; h=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=ZPmE4x90y0n/C5/xsjrbsl6PbMgtMY1PFDJH3HMGg8I=; b=FvuNACMbyvdXxxn2YnlZXCGhOGO2o5dYY9HnWqnROQSDUGrlQSX1/5GFd4r+wm1GAt ZhXU4k3IxVjEKP9RBuUvx2x+VEjnrOyfM8aZcYUsPr55Ak6HWKDpqHHdPTEqChk2BnlH rURsJNYItzHUuSeJdQr56Jd6PE9prsF3jVtaZIOdjZ6yVFciR8EKscy4oLiHgt+kT9vf nRecceHbUP9o9zhqloLskbcb/M5aOQMBL8vxegwzeEkd/td1vj7w8nFJXIrb1MeMoH1P x6f5DO/a9102sKlrT+peDgwOFId5Aaxw/HvcOvpS25EZx4YNaGUtzDmAtLZusTaHQqrD npRg== X-Forwarded-Encrypted: i=1; AJvYcCUVy2+lt6Pz5JBcH2tU8tCKRcXrdBhJy3mHkVQbBFnQdnWK6+iDZh+549WH8DB4AYjwAw6MB7sv1VXAyxNy@lists.postgresql.org X-Gm-Message-State: AOJu0YxUvQ07zInLfOmWOjp7ijmUPO/j+OLA5sbO5JMLdnc6g7OCaKA+ sVPNg8jsTKKO/fIVl9+DZJu0W9u/BCicHcaod0qQG0q4zNLRTeGg X-Gm-Gg: ASbGnctJ8o8bYOffdNNF/nA+2Swx4XT26ndIFX807YdjuiJ/0hNenKNo3C0Ofqps+dM zuADUiJO6UaHAvQ35mOAehN5bBhnqDgNermSdrJneBtHBDGaumrgD1TceGCWqL2bwLPsDtacNHl e8U1B5AIIeDl3YZyzkLCIvsoPCLTaRDSB+Ua16aRWmlbiByXV41L3uqfn1hwggKAhRIX7xLyQAn AzRJ/L9P9eysV/XVXe2WSJhNnPPqGo33ZvsUNV3riEIEKf3gTw7Zpi36/aRNaVQfP3RjTj1I4NR Cx4ODWjAehOvl4lXZVR/itvRw+f+brnE1ycppVqJEZbTGiY4FAzmKnRsOdtyR4ULWnDXaUILhe8 4Sq6DXYY= X-Google-Smtp-Source: AGHT+IEkHx7untGixhW/qc7GCOis81XXPnptbxPM1lfYWtamQjcqDFnqPuylNJWLxPzti4PYSTroMQ== X-Received: by 2002:a05:600c:3b0c:b0:436:488f:4f3 with SMTP id 5b1f17b1804b1-43668646390mr437920005e9.17.1735901323469; Fri, 03 Jan 2025 02:48:43 -0800 (PST) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-236-134-5.eu-west-3.compute.amazonaws.com. [15.236.134.5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4366127c493sm475093015e9.28.2025.01.03.02.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2025 02:48:43 -0800 (PST) Date: Fri, 3 Jan 2025 10:48:41 +0000 From: Bertrand Drouvot To: Michael Paquier Cc: Nazir Bilal Yavuz , Alvaro Herrera , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org Subject: Re: per backend I/O statistics Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Tue, Dec 24, 2024 at 02:35:16PM +0900, Michael Paquier wrote: > On Fri, Dec 20, 2024 at 09:57:19AM +0000, Bertrand Drouvot wrote: > > BTW, now that the per backend I/O statistics is done, I'll start working on per > > backend wal statistics. > > I think that this is a good idea. Thanks for sharing your thoughts. > It does not actually overlap the > proposal in [1] as the stats persistency is not the same. What this > thread has taught me is that you could just plug in the stats of the > new backend-level structure a PgStat_WalStats and retrieve them with a > new function that returns a single tuple with the WAL stats > attributes. That should be rather straight-forward to achieve. I started to look at it and should be able to share a patch next week. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com