1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

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.
This commit is contained in:
Tom Lane
2012-04-29 18:13:33 -04:00
parent 309c64745e
commit 1dd89eadcd
16 changed files with 79 additions and 79 deletions

View File

@ -233,8 +233,8 @@ typedef struct PgStat_MsgTabstat
int m_nentries;
int m_xact_commit;
int m_xact_rollback;
PgStat_Counter m_block_time_read;
PgStat_Counter m_block_time_write;
PgStat_Counter m_block_read_time;
PgStat_Counter m_block_write_time;
PgStat_TableEntry m_entry[PGSTAT_NUM_TABENTRIES];
} PgStat_MsgTabstat;
@ -540,8 +540,8 @@ typedef struct PgStat_StatDBEntry
PgStat_Counter n_temp_files;
PgStat_Counter n_temp_bytes;
PgStat_Counter n_deadlocks;
PgStat_Counter n_block_time_read; /* times in microseconds */
PgStat_Counter n_block_time_write;
PgStat_Counter n_block_read_time; /* times in microseconds */
PgStat_Counter n_block_write_time;
TimestampTz stat_reset_timestamp;
@ -732,8 +732,8 @@ extern PgStat_MsgBgWriter BgWriterStats;
/*
* Updated by pgstat_count_time_* macros.
*/
extern PgStat_Counter pgStatBlockTimeRead;
extern PgStat_Counter pgStatBlockTimeWrite;
extern PgStat_Counter pgStatBlockReadTime;
extern PgStat_Counter pgStatBlockWriteTime;
/* ----------
* Functions called from postmaster
@ -831,9 +831,9 @@ extern void pgstat_initstats(Relation rel);
(rel)->pgstat_info->t_counts.t_blocks_hit++; \
} while (0)
#define pgstat_count_buffer_read_time(n) \
pgStatBlockTimeRead += (n);
(pgStatBlockReadTime += (n))
#define pgstat_count_buffer_write_time(n) \
pgStatBlockTimeWrite += (n);
(pgStatBlockWriteTime += (n))
extern void pgstat_count_heap_insert(Relation rel, int n);
extern void pgstat_count_heap_update(Relation rel, bool hot);