Re: Tracking last scan time
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: Dave Page <dpage@pgadmin.org>, Vik Fearing <vik@postgresfriends.org>, Matthias van de Meent <boekewurm+postgres@gmail.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2022-10-12T19:50:31Z
Lists: pgsql-hackers
Hi, On 2022-10-12 15:40:21 +0900, Michael Paquier wrote: > On Mon, Oct 03, 2022 at 12:55:40PM +0100, Dave Page wrote: > > Thanks. It's just the changes in xact.c, so it doesn't seem like it would > > cause you any more work either way, in which case, I'll leave it to you :-) > > Okay, I have just moved the patch to the next CF then, still marked as > ready for committer. Are you planning to look at that? Yep, doing so right now. I think this should have at a basic test in src/test/regress/sql/stats.sql. If I can write one in a few minutes I'll go for that, otherwise will reply detailing difficulties. > + <para> > + The time of the last sequential scan of this table, based on the > + most recent transaction stop time > + </para></entry> Related rows seem to say "on this table". Greetings, Andres Freund
Commits
-
Fix initialization of pg_stat_get_lastscan()
- d7744d50a539 16.0 landed
-
pgstat: Track time of the last scan of a relation
- c037471832e1 16.0 landed
-
Have GetCurrentTransactionStopTimestamp() set xactStopTimestamp if unset
- 309b2cf2433d 16.0 landed