pg_stat_slru_reset_timestamp.patch
text/plain
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| src/backend/utils/adt/pgstatfuncs.c | 1 | 1 |
diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c index 446044609e..6b47617328 100644 --- a/src/backend/utils/adt/pgstatfuncs.c +++ b/src/backend/utils/adt/pgstatfuncs.c @@ -1757,7 +1757,7 @@ pg_stat_get_slru(PG_FUNCTION_ARGS) values[5] = Int64GetDatum(stat.blocks_exists); values[6] = Int64GetDatum(stat.flush); values[7] = Int64GetDatum(stat.truncate); - values[8] = Int64GetDatum(stat.stat_reset_timestamp); + values[8] = TimestampTzGetDatum(stat.stat_reset_timestamp); tuplestore_putvalues(tupstore, tupdesc, values, nulls); }