aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pgstatfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-04-29 18:13:33 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-04-29 18:13:33 -0400
commit1dd89eadcd2648d7ca0baed3c7af16a04eb1aa26 (patch)
treefa868b74e0a32d09154c2f77bd3c998e79fa6258 /src/backend/utils/adt/pgstatfuncs.c
parent309c64745ea145d7c731e1fe610631b2b84e7e88 (diff)
downloadpostgresql-1dd89eadcd2648d7ca0baed3c7af16a04eb1aa26.tar.gz
postgresql-1dd89eadcd2648d7ca0baed3c7af16a04eb1aa26.zip
Rename I/O timing statistics columns to blk_read_time and blk_write_time.
This seems more consistent with the pre-existing choices for names of other statistics columns. Rename assorted internal identifiers to match.
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
-rw-r--r--src/backend/utils/adt/pgstatfuncs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c
index 288243a7787..0be55e007ca 100644
--- a/src/backend/utils/adt/pgstatfuncs.c
+++ b/src/backend/utils/adt/pgstatfuncs.c
@@ -82,8 +82,8 @@ extern Datum pg_stat_get_db_deadlocks(PG_FUNCTION_ARGS);
extern Datum pg_stat_get_db_stat_reset_time(PG_FUNCTION_ARGS);
extern Datum pg_stat_get_db_temp_files(PG_FUNCTION_ARGS);
extern Datum pg_stat_get_db_temp_bytes(PG_FUNCTION_ARGS);
-extern Datum pg_stat_get_db_block_time_read(PG_FUNCTION_ARGS);
-extern Datum pg_stat_get_db_block_time_write(PG_FUNCTION_ARGS);
+extern Datum pg_stat_get_db_blk_read_time(PG_FUNCTION_ARGS);
+extern Datum pg_stat_get_db_blk_write_time(PG_FUNCTION_ARGS);
extern Datum pg_stat_get_bgwriter_timed_checkpoints(PG_FUNCTION_ARGS);
extern Datum pg_stat_get_bgwriter_requested_checkpoints(PG_FUNCTION_ARGS);
@@ -1362,7 +1362,7 @@ pg_stat_get_db_deadlocks(PG_FUNCTION_ARGS)
}
Datum
-pg_stat_get_db_block_time_read(PG_FUNCTION_ARGS)
+pg_stat_get_db_blk_read_time(PG_FUNCTION_ARGS)
{
Oid dbid = PG_GETARG_OID(0);
int64 result;
@@ -1371,13 +1371,13 @@ pg_stat_get_db_block_time_read(PG_FUNCTION_ARGS)
if ((dbentry = pgstat_fetch_stat_dbentry(dbid)) == NULL)
result = 0;
else
- result = (int64) (dbentry->n_block_time_read);
+ result = (int64) (dbentry->n_block_read_time);
PG_RETURN_INT64(result);
}
Datum
-pg_stat_get_db_block_time_write(PG_FUNCTION_ARGS)
+pg_stat_get_db_blk_write_time(PG_FUNCTION_ARGS)
{
Oid dbid = PG_GETARG_OID(0);
int64 result;
@@ -1386,7 +1386,7 @@ pg_stat_get_db_block_time_write(PG_FUNCTION_ARGS)
if ((dbentry = pgstat_fetch_stat_dbentry(dbid)) == NULL)
result = 0;
else
- result = (int64) (dbentry->n_block_time_write);
+ result = (int64) (dbentry->n_block_write_time);
PG_RETURN_INT64(result);
}