postgresql/src/backend
Tom Lane e69030cb51 Fix incorrect pg_stat_io output on 32-bit machines.
pg_stat_get_io() applied TimestampTzGetDatum twice to the
stat_reset_timestamp value.  On 64-bit builds that's harmless because
TimestampTzGetDatum is a no-op, but on 32-bit builds it results in
displaying garbage in the stats_reset column of the pg_stat_io view.

Bug dates to commit a9c70b46d which introduced pg_stat_io, so
back-patch to v16 where that came in.

Bertrand Drouvot

Discussion: https://postgr.es/m/Ztrd+XcPTz1zorkg@ip-10-97-1-34.eu-west-3.compute.internal
2024-09-06 11:58:10 -04:00
..
access Message style improvements 2024-08-29 14:33:18 +02:00
archive Fix memory leaks in error reporting with LOG level 2024-05-14 10:41:32 +02:00
backup Message style improvements 2024-08-29 14:33:18 +02:00
bootstrap Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
catalog Reset relhassubclass upon attaching table as a partition 2024-07-24 12:38:18 +02:00
commands Message style improvements 2024-08-29 14:33:18 +02:00
executor Revert recent SQL/JSON related commits 2024-09-06 12:52:39 +09:00
foreign Restrict accesses to non-system views and foreign tables during pg_dump. 2024-08-05 06:05:30 -07:00
jit Move resowner from common JitContext to LLVM specific 2024-07-19 10:27:54 +03:00
lib Revert: Implement pg_wal_replay_wait() stored procedure 2024-04-11 17:28:15 +03:00
libpq Fix regression in TLS session ticket disabling 2024-08-19 12:55:11 +02:00
main Tighten check for --forkchild argument when spawning child process 2024-07-03 16:20:56 +03:00
nodes Adapt REL_17_STABLE to its new status as a stable branch 2024-07-01 08:05:35 +09:00
optimizer Avoid inserting PlaceHolderVars in cases where pre-v16 PG did not. 2024-08-30 12:42:13 -04:00
parser SQL/JSON: Fix default ON ERROR behavior for JSON_TABLE 2024-09-06 13:30:42 +09:00
partitioning Revert support for ALTER TABLE ... MERGE/SPLIT PARTITION(S) commands 2024-08-24 19:18:24 +03:00
po Translation updates 2024-09-02 12:02:42 +02:00
port Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
postmaster Message style improvements 2024-08-29 14:33:18 +02:00
regex Support C.UTF-8 locale in the new builtin collation provider. 2024-03-19 15:24:41 -07:00
replication Message style improvements 2024-08-29 14:33:18 +02:00
rewrite Avoid inserting PlaceHolderVars in cases where pre-v16 PG did not. 2024-08-30 12:42:13 -04:00
snowball Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
statistics Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
storage Fix inconsistent LWLock tranche name "CommitTsSLRU" 2024-09-04 10:22:19 +09:00
tcop Revert support for ALTER TABLE ... MERGE/SPLIT PARTITION(S) commands 2024-08-24 19:18:24 +03:00
tsearch Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
utils Fix incorrect pg_stat_io output on 32-bit machines. 2024-09-06 11:58:10 -04:00
.gitignore
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Fix make build on MinGW 2024-06-21 08:17:23 +02:00
meson.build meson: Fix import library name in Windows 2024-06-20 09:08:36 +02:00
nls.mk Add missing gettext triggers 2024-05-14 12:57:22 +02:00