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 1pZAJ2-0002V7-FN for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Mar 2023 12:51:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pZAJ0-0001ln-Sd for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Mar 2023 12:51:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZAJ0-0001le-J2 for pgsql-hackers@lists.postgresql.org; Mon, 06 Mar 2023 12:51:06 +0000 Received: from forward501a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:d501]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZAIv-0008GG-DS for pgsql-hackers@lists.postgresql.org; Mon, 06 Mar 2023 12:51:05 +0000 Received: from vla1-11f05578dcd9.qloud-c.yandex.net (vla1-11f05578dcd9.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:4201:0:640:11f0:5578]) by forward501a.mail.yandex.net (Yandex) with ESMTP id 99C2C5E9E8; Mon, 6 Mar 2023 15:50:56 +0300 (MSK) Received: by vla1-11f05578dcd9.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id toZZWF0bpGk1-00NbIVAk; Mon, 06 Mar 2023 15:50:56 +0300 X-Yandex-Fwd: 1 Authentication-Results: vla1-11f05578dcd9.qloud-c.yandex.net; dkim=pass Message-ID: <7beb722dd016bf54f1c78bfd6d44a684e28da624.camel@moonset.ru> Subject: Re: Normalization of utility queries in pg_stat_statements From: Andrei Zubkov To: Michael Paquier Cc: Postgres hackers , "Drouvot, Bertrand" Date: Mon, 06 Mar 2023 15:50:55 +0300 In-Reply-To: References: <0e067034-e92c-302b-24ed-492bca228e26@gmail.com> <14965f63-6d78-45ff-d029-daafe8eddb40@gmail.com> <1f84685f-1ffd-4937-de63-aaa1513a0b7e@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1+deb11u1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Michael! I'm rebasing a patch "Tracking statements entry timestamp in pg_stat_statements" for applying after this patch. I've noted that current tests are not quite independent one from another. There is two statements in the end of user_activity.sql test: DROP ROLE regress_stats_user1; DROP ROLE regress_stats_user2; Those are done after the last pg_stat_statements_reset call in this test file and thus, those are included in checks of wal.out file: query | calls | rows | wal_bytes_generated | wal_records_generated | wal_records_ge_rows ----------------------------------------------------------------------- -------+-------+------+---------------------+-----------------------+-- ------------------- DELETE FROM pgss_wal_tab WHERE a > $1 | 1 | 1 | t | t | t DROP ROLE regress_stats_user1 | 1 | 0 | t | t | t DROP ROLE regress_stats_user2 | 1 | 0 | t | t | t Those statements is not related to any WAL tests. It seems a little bit incorrect to me. Are we need some changes here? -- Andrei Zubkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company