pgsql: Use proper GetDatum function in pg_stat_get_slru().

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use proper GetDatum function in pg_stat_get_slru().
Date: 2020-05-13 13:21:08
Message-ID: E1jYrJs-00028r-FN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use proper GetDatum function in pg_stat_get_slru().

This commit changes pg_stat_get_slru() so that it uses
TimestampTzGetDatum() for stats_reset field because that field
stores the timestamp with time zone value. Previously
Int64GetDatum() was used.

Author: Fujii Masao
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/b8784fe6-1401-ab35-aa14-d57b5bb8e312@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/043e3e04016077735f986726a3a74192c295ace7

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-05-13 14:02:34 Re: Add "-Wimplicit-fallthrough" to default flags
Previous Message Fujii Masao 2020-05-13 13:20:16 pgsql: Initialize SLRU stats entries to zero.