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

Commit043e3e0

Browse files
committed
Use proper GetDatum function in pg_stat_get_slru().
This commit changes pg_stat_get_slru() so that it usesTimestampTzGetDatum() for stats_reset field because that fieldstores the timestamp with time zone value. PreviouslyInt64GetDatum() was used.Author: Fujii MasaoReviewed-by: Tomas VondraDiscussion:https://postgr.es/m/b8784fe6-1401-ab35-aa14-d57b5bb8e312@oss.nttdata.com
1 parentf3d23d8 commit043e3e0

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
@@ -1757,7 +1757,7 @@ pg_stat_get_slru(PG_FUNCTION_ARGS)
17571757
values[5]=Int64GetDatum(stat.blocks_exists);
17581758
values[6]=Int64GetDatum(stat.flush);
17591759
values[7]=Int64GetDatum(stat.truncate);
1760-
values[8]=Int64GetDatum(stat.stat_reset_timestamp);
1760+
values[8]=TimestampTzGetDatum(stat.stat_reset_timestamp);
17611761

17621762
tuplestore_putvalues(tupstore,tupdesc,values,nulls);
17631763
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp