postgresql/src/backend/storage
Michael Paquier c776550e46 Change stat_lock.wait_time to double precision
Other statistics views (pg_stat_io, pg_stat_database, etc.) use float8
for all measured-time columns, the new pg_stat_lock standing out as an
outlier by using bigint.

This commit aligns pg_stat_lock with the other stats views for
consistency.  Like pg_stat_io, the time is stored in microseconds, and
is displayed in milliseconds with a conversion done when the view is
queried.

While on it, replace a use of "long" by PgStat_Counter, the former could
overflow for large wait times where sizeof(long) is 4 bytes (aka WIN32).

Bump catalog version.

Author: Tatsuya Kawata <kawatatatsuya0913@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAHza6qerEiQehrbW5xaXyxvR0qJe3KBX1R4kocDz1+7Ygu8x-g@mail.gmail.com
Backpatch-through: 19
2026-06-30 12:47:34 +09:00
..
aio Prevent access to other sessions' temp tables 2026-05-14 15:01:17 +03:00
buffer bufmgr: Fix race in LockBufferForCleanup() 2026-06-30 10:36:41 +09:00
file Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
freespace Mark modified the FSM buffer as dirty during recovery 2026-05-03 20:23:50 +03:00
ipc Make StandbyAcquireAccessExclusiveLock() more resilent with OOMs 2026-06-20 15:00:40 +09:00
large_object Improve type handling of varlena structures 2026-02-11 07:33:24 +09:00
lmgr Change stat_lock.wait_time to double precision 2026-06-30 12:47:34 +09:00
page Use .h for the file containing the page checksum code fragment 2026-04-07 15:52:55 +07:00
smgr bufmgr: Don't copy pages while writing out 2026-03-27 15:56:29 -04:00
sync Don't include wait_event.h in pgstat.h 2026-03-06 16:24:58 +01:00
Makefile Split some long Makefile lists 2025-12-28 09:17:42 +09:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00