Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd20f95

Browse files
committed
Fix incorrect pg_stat_io output on 32-bit machines.
pg_stat_get_io() applied TimestampTzGetDatum twice to thestat_reset_timestamp value. On 64-bit builds that's harmless becauseTimestampTzGetDatum is a no-op, but on 32-bit builds it results indisplaying garbage in the stats_reset column of the pg_stat_io view.Bug dates to commita9c70b4 which introduced pg_stat_io, soback-patch to v16 where that came in.Bertrand DrouvotDiscussion:https://postgr.es/m/Ztrd+XcPTz1zorkg@ip-10-97-1-34.eu-west-3.compute.internal
1 parent4fd4d76 commitdd20f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/pgstatfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ pg_stat_get_io(PG_FUNCTION_ARGS)
14021402
values[IO_COL_BACKEND_TYPE]=bktype_desc;
14031403
values[IO_COL_CONTEXT]=CStringGetTextDatum(context_name);
14041404
values[IO_COL_OBJECT]=CStringGetTextDatum(obj_name);
1405-
values[IO_COL_RESET_TIME]=TimestampTzGetDatum(reset_time);
1405+
values[IO_COL_RESET_TIME]=reset_time;
14061406

14071407
/*
14081408
* Hard-code this to the value of BLCKSZ for now. Future

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp