| From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
|---|---|
| To: | Sami Imseih <samimseih(at)gmail(dot)com> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, shihao zhong <zhong950419(at)gmail(dot)com> |
| Subject: | Re: Add missing stats_reset column to pg_statio_all_sequences view |
| Date: | 2026-03-16 14:49:01 |
| Message-ID: | CAHGQGwGXs9pQ-vGhMnSX0xBWzQ5-TB=eB3r21NXQP8Ei4g0aUQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Mar 16, 2026 at 7:01 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> Hmm... buildfarm member crake reported a pg_upgradeCheck failure, and it seems
> the test I added last time is causing it :(
>
> --- /home/andrew/bf/root/HEAD/pgsql/src/test/regress/expected/stats.out
> 2026-03-16 04:27:05.805748763 -0400
> +++ /home/andrew/bf/root/HEAD/pgsql.build/testrun/pg_upgrade/002_pg_upgrade/data/results/stats.out
> 2026-03-16 05:17:15.460202339 -0400
> @@ -1196,7 +1196,7 @@
> FROM pg_statio_all_sequences WHERE relname ='test_seq1';
> ?column? | ?column?
> ----------+----------
> - t | 0
> + t | 1
> (1 row)
>
> The test assumed that blks_read and blks_hit in pg_statio_all_sequences would
> be zero immediately after calling pg_stat_reset_single_table_counters().
> However, on crake, either of them became 1 even right after the reset.
> This might happen if another process (e.g., autovacuum) accesses
> the sequence in the short window between the reset and the query of
> pg_statio_all_sequences??? More investigation would be necessary.
>
> Since checking the blks_read and blks_hit counters in pg_statio_all_sequences
> can make the test unstable, I'm thinking of removing that part of the test.
Done.
Regards,
--
Fujii Masao
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2026-03-16 14:52:21 | Re: bug: pg_dumpall with --data-only and --clean options is giving an error after some dump |
| Previous Message | Andrey Borodin | 2026-03-16 14:27:58 | Re: Vacuum statistics |