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.96) (envelope-from ) id 1w0rWJ-002GyX-2C for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 01:40:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0rVI-0019Qs-2W for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 01:39:53 +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.96) (envelope-from ) id 1w0rVI-0019Qk-1b for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2026 01:39:52 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w0rVG-00000002OAG-2E4D for pgsql-hackers@postgresql.org; Fri, 13 Mar 2026 01:39:52 +0000 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-7d4c12ff3d5so1487661a34.2 for ; Thu, 12 Mar 2026 18:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773365989; cv=none; d=google.com; s=arc-20240605; b=JHXeQ1YGO7s6P28DyALR1Lj2RJKkhIi7uMdllBFBbkoNKhjJ9RJDRtSKSeZ7kHJRQS eboqzlmp2m4XSSbwDXybPMYddptOa5lqhEUH8mCre0ikA5C9ZARlNjJj7H7QfB6wDjyp VmnZL4UGjW/8IdPNfD9ipARY3qmX73DEtYgD0IsQ/LaHiMw0bGPx3x2jhORxIhEdGlp2 7VFgnetWxhidewvQs6ZrSR6Jp5jG80ibZ0NIiZpBRVHXDgBOoBWlVfQd9IER8UouR26h MTIWmnoW1+BhuUGWOE698wSQIFi7eEnK0Fjw+HBTMwmWB+JyWz48lUYSfXX9zoYaBsAm L8qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tOenReeVKsL1sXHGW9qe6GlXLnqHEvFrnU8JiondTbQ=; fh=6RlhcHKMprORx2h9M0ImLhjkRcl3mNqLjpkZD7Kd0dA=; b=DT0XSovCk5OrrtDAK9GASISE9NkFjNqw3iNM4DfNZyAioZu5HBFK3h2PiL8kXT9FKV gf38pTs1nPjMqr4RqzbnzgDvLdDyYjgZK8VqhwTU5IfrNGge8cOBQzK1H1S+Za5341h7 TI7UfSTAazhOZ6o5mXyBnK6C81OAf72/JtSnpsFpLDMth2cHyo9MU7kv/3jLfovscaje d477ov0YLSm8m5DQ4Fq451j3SYSghjvViAGXqTKgcZ98UC2WuAK0T1riTFqYWZfV7U8M fYROGINtI7uX5j35shi0hnNkwh+GcJgWPWY+CASvNd27+iQ6gvhuWwXzy1oVLPxid6G8 Fu9w==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773365989; x=1773970789; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tOenReeVKsL1sXHGW9qe6GlXLnqHEvFrnU8JiondTbQ=; b=KFPo0SI/ycLpF7w5dgmZm1HLKPOnZxn/jxoLoc/xyAGWMduph0WDitMq6zBcZhVZFD ij3QxoBTQanq37KW/DNyY5ZWfFK0aPjYyrxaCGcDR8Zp9rhJgXYliONGNa7mC9KEffwN eUQBD1YZoOVoQLGdelZ3ejGTPRJ/zj6PiqINODzh97uunq6+wvN/QlKEK3Op4gUbUcEC lFG8nZ2VIVlfn+yXNSCVNdfuuynPoDvnWthcgNb/ScrvQMeVokoMbbB8vc4Mc6AmTW8D 9RkabiXu93NDfa3JBQb8WTE7ExM3i1V9o+ixRFGQxQCjt9dzVKyRhp7icUMk814+CaFx IJAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773365989; x=1773970789; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tOenReeVKsL1sXHGW9qe6GlXLnqHEvFrnU8JiondTbQ=; b=de3ckn3sIf9e//xXxW2c67rH0W/8sTTyoSncPpmWfwoXHRMJnbZHoCfy5xdkzsudm7 /QoxO5qOOSVoqgwti9+zqE8OxNcaIhiwbRJHEP2uJmo+fn0V/AQ6Zg2HnMI0K1vHCkyq RXbBhUZ2sXqRTN9q01wF7H8Urp3iOQqsfp6mbmQG9fYpbbbug+gDDdSIeJa6QA2FTJBb 0W/jzfq4vVaJgB0dTbIHFaYKQJYDmp/uU1A6wsx5rysVmWC3oglQ3rxkaR9Dte/XDhh7 ZkpE9aBLEBcdNV3BMUEYtjfJ+/TEE2QaBBB9uSZLrEwAoIxoua5HrQqgW3ALF39vBdZk SmIg== X-Gm-Message-State: AOJu0YyXzSJZ2D3gXbY+PXLPNuuEvqgdUC+Zl3rD3ZvNp3W9FwMhJHtd nM+hCa5t6fjFYFKPUZ2JmUd4DmRqa/9CgGcClByJSTU1OIXSmOCEK/yLxT0hYWvZGKUVS1Aqr3d 6WafMPHreYIO4GU6d/9knGFTcs5BWxdU= X-Gm-Gg: ATEYQzxAENEMuj9+4UaOziqwWk4Et6CPWa0vF4cFkDBhAjN5n0s+RBx4JxTc/m6G9s/ AcBVpi+10gjDkrcPaq1ibs2sMCDfELV7N+9J9HYQ0jzScKYm1oIE/X5sIbmYGXFyM9UweZpV3E1 wSgHOX0antT6Isu0X47GKgUGkavkVqCul728sfDHQ5CnnwXRFv9rpg/9YYcv3vBs3E7da3IwN4m G3a3UoryVfi3JqkP9rooiR3Px0QzU0VgkAbrEDj4uW+xxY1q/LsDlTZ+KGFM4HmFGRfzerRL80w 0IhRY9yZSwtKyOq1i4EovmcngsXmN+RvK6gQ1qgfI5a2doOKZsNT X-Received: by 2002:a05:6820:4913:b0:67b:b89e:22af with SMTP id 006d021491bc7-67bdaa67c7dmr945018eaf.51.1773365988687; Thu, 12 Mar 2026 18:39:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fujii Masao Date: Fri, 13 Mar 2026 10:39:36 +0900 X-Gm-Features: AaiRm50E7i5aCTaZmoh2jaPbhdjJfuURxo4PQOpNQPIg_uf-Mx9Oq84AZq8atv4 Message-ID: Subject: Re: Add missing stats_reset column to pg_statio_all_sequences view To: Sami Imseih Cc: pgsql-hackers , shihao zhong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 13, 2026 at 7:44=E2=80=AFAM Sami Imseih w= rote: > > After Creating this thread and the CF entry for it [1], I realized Shihao= also > created [2] yesterday. Sorry about that. > > We can stick with 6582 and Shihao can also get author credit. Thanks to both Shihao and Sami for proposing patches! Since the two patches are almost the same, I reviewed Sami's patch. It looks good to me overall. One comment: for the tests added to stats.sql, it would be better to verify that the stats of the specified sequence are actually reset by using pg_stat_reset_single_table_counters(). Also, the documentation for pg_stat_reset_single_table_counters() should mention that it can reset sequence statistics as well. Regards, --=20 Fujii Masao