diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-04-21 07:21:50 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-04-21 07:21:50 +0900 |
commit | 0ecb87e1fa07a733494e35636e55807b0f3fc1ed (patch) | |
tree | 958227cf546cbf36d6e6791866785cef1c49ddb6 /src/backend/utils/adt/pgstatfuncs.c | |
parent | eab2d3147e3c13aca4a9aca52c0a9a581a8d224a (diff) | |
download | postgresql-0ecb87e1fa07a733494e35636e55807b0f3fc1ed.tar.gz postgresql-0ecb87e1fa07a733494e35636e55807b0f3fc1ed.zip |
Remove io prefix from pg_stat_io columns
a9c70b46 added the statistics view pg_stat_io which contained columns
"io_context" and "io_object". Given that the columns are in the
pg_stat_io view, the "io" prefix is somewhat redundant, so remove it.
The code variables referring to these fields are kept unchanged so as
they can keep their context about I/O.
Bump catalog version.
Author: Melanie Plageman
Reviewed-by: Kyotaro Horiguchi, FabrÃzio de Royes Mello
Discussion: https://postgr.es/m/CAAKRu_aAQoJWrvT2BYYQvJChFKra_O-5ra3jhzKJZqWsTR1CPQ@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
-rw-r--r-- | src/backend/utils/adt/pgstatfuncs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c index e79b065d214..0d57b6a7c05 100644 --- a/src/backend/utils/adt/pgstatfuncs.c +++ b/src/backend/utils/adt/pgstatfuncs.c @@ -1262,8 +1262,8 @@ typedef enum io_stat_col { IO_COL_INVALID = -1, IO_COL_BACKEND_TYPE, - IO_COL_IO_OBJECT, - IO_COL_IO_CONTEXT, + IO_COL_OBJECT, + IO_COL_CONTEXT, IO_COL_READS, IO_COL_READ_TIME, IO_COL_WRITES, @@ -1394,8 +1394,8 @@ pg_stat_get_io(PG_FUNCTION_ARGS) continue; values[IO_COL_BACKEND_TYPE] = bktype_desc; - values[IO_COL_IO_CONTEXT] = CStringGetTextDatum(context_name); - values[IO_COL_IO_OBJECT] = CStringGetTextDatum(obj_name); + values[IO_COL_CONTEXT] = CStringGetTextDatum(context_name); + values[IO_COL_OBJECT] = CStringGetTextDatum(obj_name); values[IO_COL_RESET_TIME] = TimestampTzGetDatum(reset_time); /* |