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 1tWFUg-00FGvz-JX for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 13:56:11 +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 1tWFUf-00GXTb-Rt for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 13:56:09 +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 1tWFUf-00GXTS-FR for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2025 13:56:09 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tWFUb-000utq-0J for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2025 13:56:08 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-436341f575fso22404385e9.1 for ; Fri, 10 Jan 2025 05:56:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736517363; x=1737122163; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=eKxHOvEi/iZYkHFNfcA10Q+0+FedrQgXH5jMv2dFdxY=; b=dQ1kDu0SJpw/J6tiJ/jE/7joc20zhk8Zw59yeMynCcJjEa8aNgIVIv+B8BMgUq9PhE RwdkfKvOBrd0CpnpBJ8lNMYpC9cUTPf4OdcZr0LN2Vch5kwWhd8/1nvwq+4SQ9xfx9DE Y8mUPqiXz3RiFuLLfyuBu9tOLz5UjV2T6dzPuX4UtqGKRYVSLn7gBPk7zzvC4SCv4Mmj gFnI1B6Ae2aFwsnDnpTQ/5OeaZrp2RFhHu5C4qNyi4ctKIc1wzAfs+AnZk1oeoCHUEKF fjKbeIfAzDFl7Dph4yvjY8ayXxDv8eh65EukyCjDFsv/BmT3bpzKN48IZw5CYgzm61CL l/3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736517363; x=1737122163; h=in-reply-to:content-transfer-encoding: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=eKxHOvEi/iZYkHFNfcA10Q+0+FedrQgXH5jMv2dFdxY=; b=or/ghjI8KXY0B5/c6Tv4m+i6PmPNjwLJJSH0Bh8zsck6GPezVaZaWoelfa8EW1GlFv 9laybsAj4iQi7cbWDT19qxgWs3//NAe5owmFbsHmgpMJQ9ed+wSI9CvGC6C/n+9cIKm6 M1j4YFdZLfJzWbV8bAhjqPvYfFgWYSzN7H2zTb0zgDIvzhH1qYjm4jEHR7ZAVa+e44So WblCXIUWlQxBzQOdzjays/Ppw2QFZ7AIw6HbrTBth7hvVCJDQczh811XJxuZfWQ3LF+h FEbGlVg+HRrirKj+dg08dzb7yg5zsNkX6C0pXSssZEmTkXbaFmhZy5SKQwLaEDppMXps 7cfw== X-Forwarded-Encrypted: i=1; AJvYcCVg+u+83XQ63NXIi+NbsadH2CDIKQNxUXyWV+cuyn/xGpqJFJhxe/gMu2Zu9jESo1+R4I6EoMPYjwdnzprq@lists.postgresql.org X-Gm-Message-State: AOJu0YzJSEgBq5V+nIwZDNBQ+lTtzc2bQbbZrnXV4ep75ZWZfnARk7AW 0hFv1QseH+Q3e6HXY7HnrXVG13rqZH2XP83A9MyhUIjkhLTuRCPy X-Gm-Gg: ASbGncs9Sm7s4Se61QhzBCKcbkI/9Hz4D2snyx7uNi94OZIIPRssEi8lJ+9tkzJzY/Z /CO2GgByG1d17amAZaiKxsMYtFEByhFrNm3qjw1MVqYUpEUop97WWnCeZYdEGIGR5o1RAPJDhJS 6M9EDc9R0wtzY5fIG8ndexDtHnXyG/bM5lvOgJMjxMFFKovhjfl+lOkzzuygbR03kQDLKP0oQAM 7xGzofBYHXsGAd3akDOl01Qi/kMOGRQk/Pcr1+oiEVloQ7yJLSqGtblgMcO+6f812Xy6kOMJTRy vSQ9r7FvD1zgVHD8jXAcdKd8VLlmhkt9+SxC00sBMqAB48K4XmSL83fqXiWyO3Xi9B43O2AiXM6 cP4mSJD0= X-Google-Smtp-Source: AGHT+IE5yvqxVO2s7h+PnH6dm2KpRclc5TItLHHlAnVWLQxAxu1IlWRSXSzMqpfAVzZC2i0ME+6Z3Q== X-Received: by 2002:a05:6000:1f8d:b0:386:1ab5:f0e1 with SMTP id ffacd0b85a97d-38a873052bfmr10681577f8f.14.1736517363174; Fri, 10 Jan 2025 05:56:03 -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 ffacd0b85a97d-38a8e4b81a4sm4707079f8f.68.2025.01.10.05.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2025 05:56:02 -0800 (PST) Date: Fri, 10 Jan 2025 13:56:01 +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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Thu, Dec 19, 2024 at 06:12:04AM +0000, Bertrand Drouvot wrote: > I think I'll start a dedicated thread to discuss the stats_fetch_consistency/'snapshot' > point (will be easier to follow than resuming the discussion in this thread). I gave more thoughts on it and did some research in the mailing list. I've read those comments, from [1]: " We had a lot of discussion around what consistency
model we want, and Tom was adamant that there needs to be a mode that behaves
like the current consistency model (which is what snapshot behaves like, with
very minor differences) " and from [2]: " One thing we definitely need to add documentation for is the stats_fetch_consistency GUC. I think we should change its default to 'cache', because that still gives the ability to "self-join", without the cost of the current method. " So now, I think that it is not a good idea for the per backend stats to behave differently than the other stats kinds. I think we should get rid of the "snapshot" for all of them or for none of them. Reading the above comments, it looks like it has already been discussed and that the outcome is to keep it for all of them. Regards, [1]: https://www.postgresql.org/message-id/20220404210610.6dgbwzpbiveyl5y3%40alap3.anarazel.de [2]: https://www.postgresql.org/message-id/20220329072651.imjqtzxwk6xycojv%40alap3.anarazel.de -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com