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 1tEOQa-0075Ze-VG for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Nov 2024 07:50:08 +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 1tEOQZ-006K8l-HV for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Nov 2024 07:50:07 +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.94.2) (envelope-from ) id 1tEOQZ-006K8d-7Y for pgsql-hackers@lists.postgresql.org; Fri, 22 Nov 2024 07:50:07 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tEOQW-003BVA-T3 for pgsql-hackers@lists.postgresql.org; Fri, 22 Nov 2024 07:50:06 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-53da6801c6dso1559116e87.0 for ; Thu, 21 Nov 2024 23:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732261800; x=1732866600; 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=KORF3CldJPPUZRc8IdhwMaZWwdhMvAIlXfO5tkBR4Aw=; b=bwoPDglVXhcuXGTxaX1VFpqjvlsl75dxTSTXzvdVUP1pAKR09Mpx0dDhBC3fzbbf/p PLJYjF9C8AiyKon7udra2G5U55iNpzh1v5Jc2a2Rn2Ev36py9NHscNRXYP7qtRp2VePZ UIiuD6q81zjakjN53exnYmQU0TdChebWseapX0CmlLDTQLkr0gywm/fJVxK709IS29L3 pmAQCXt+9MXAN9U7LGX/2i186kQSkkhTN2RHXK1l9k6GTAbuD2HsZMqIqurvmm/yGjbF 5KThry4Funk9+JHvXFjgiRih2jCcgcxOUVm8A0AQIKVfTyb809mtqEnG27mU5uxeg1+K 0jOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732261800; x=1732866600; 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=KORF3CldJPPUZRc8IdhwMaZWwdhMvAIlXfO5tkBR4Aw=; b=mtfzxq/VuVmoO3jLznugYocKjAQZEoCKANpah32TwOgab9f4LHYXZX/HiIzxETB7rS n5OLnrVfcFlIkvFL6XCF4YKiM9iKT5weMjf9/aSpfp2chWc7xde8Uu1sjPjlFoEfb2N+ ++XXJUyIlmDmzvx4wkBCwYqZQ9gNy7DxivwD0Oe/Jh1VaCOHGEtMb9FHjaDZUK1O93Dc wCREAyvnkaGItotEb7kJShLBN5pILsZLYWi3XPVn2j20QTrzN5mDOQ+pCgG/K+R24mgi 3aCAoH+xpPEelbXcP6nCP9nomINhd8iz79ZhdshdDdzsWykT/MUc3Rie0s1UVzjCH6Kw yGPg== X-Forwarded-Encrypted: i=1; AJvYcCUFy7umYUOLx+oXi0GVUjfMMrU1rC3lVHT7iKFu1Y94qZAVVcPE4fxitMl2IT3uBq7WurV0JDwskbd8nbde@lists.postgresql.org X-Gm-Message-State: AOJu0Yw50AzepJKAtXYfDuZaD8qf++t7olfp1esxEk83YZd/fzDShyl2 /cmkUadHD9JQDTIIAUo1TgmQT5YhUaQ/n7onhANpVfcoPadN7boC X-Gm-Gg: ASbGncvt4jHauylnMugZ0+udL/VDIaJFq1tokb83K29MUscHZ9RYYIYmwAsVDpLjtoW lPHQRtjD7oIXsPhMAOz6QQ2L/EHWq9lDhLtZOGXHxBxQTun9CUhJBxb6Mr7qOmiT7mLhtUUxUBi sy12QAhO2te0yPplA3DC3b2JUUqF8SSGhzsVyH3trS2oAoMXUTHPAwTt4LifVTfP9Mx3WZb4wHA dQs7R9Dag6YiG5+YckVfM0JFnVeZgIQj0BK8NJuAIEEe/MPSdAx8pZHnRQv8dbowF+VzgFa7Xke A7EI/t6GvJMndZt2fRIuOe5qNzh3AmaClQnB+DR0j4wD1F/M6t+5o9Rr18Zj22PmdeDT25DZIBk W X-Google-Smtp-Source: AGHT+IGY/AgcRH2aDbCbbquvXK2iaSVazCf7gnIOD+Nj+FG1PUdDGl9p8l3OEokH0cFXl9ZyhQ+iIA== X-Received: by 2002:a05:6512:10ce:b0:53d:a34d:70b1 with SMTP id 2adb3069b0e04-53dd389ce4emr782307e87.29.1732261800290; Thu, 21 Nov 2024 23:50:00 -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-432f64e7e12sm70611095e9.2.2024.11.21.23.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 23:49:59 -0800 (PST) Date: Fri, 22 Nov 2024 07:49:58 +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 Fri, Nov 22, 2024 at 10:36:29AM +0900, Michael Paquier wrote: > On Thu, Nov 21, 2024 at 05:23:42PM +0000, Bertrand Drouvot wrote: > > So, given that: > > > > - the end result would be the same > > - the code changes would be non negligible (unless we have a better idea than > > pgstat_get_entry_ref() returning a NULL value). > > Hmm. created_entry only matters for pgstat_init_function_usage(). > All the other callers of pgstat_prep_pending_entry() pass a NULL > value. I meant to say all the calls that passe "create" as true in pgstat_get_entry_ref(). Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com