mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
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
This commit is contained in:
@ -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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user