aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-12-16 20:16:20 +0100
committerMichael Paquier <michael@paquier.xyz>2023-12-16 20:16:20 +0100
commit3c9d9acae0bc0cd2f905043cb1d581baec4622c4 (patch)
treeb5dd28cef30e14e3c88c2ba2e233784f42d84e10 /src/backend/utils/adt/json.c
parenta6be0600ac3b71dda8277ab0fcbe59ee101ac1ce (diff)
downloadpostgresql-3c9d9acae0bc0cd2f905043cb1d581baec4622c4.tar.gz
postgresql-3c9d9acae0bc0cd2f905043cb1d581baec4622c4.zip
Refactor pgstat_prepare_io_time() with an input argument instead of a GUC
Originally, this routine relied on track_io_timing to check if a time interval for an I/O operation stored in pg_stat_io should be initialized or not. However, the addition of WAL statistics to pg_stat_io requires that the initialization happens when track_wal_io_timing is enabled, which is dependent on the code path where the I/O operation happens. Author: Nazir Bilal Yavuz Discussion: https://postgr.es/m/CAN55FZ3AiQ+ZMxUuXnBpd0Rrh1YhwJ5FudkHg=JU0P+-W8T4Vg@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions