@@ -103,19 +103,19 @@ typedef struct Counters
103103int64 calls ;/* # of times executed */
104104double total_time ;/* total execution time, in msec */
105105int64 rows ;/* total # of retrieved or affected rows */
106- int64 shared_blks_hit ;/* # of shared buffer hits */
106+ int64 shared_blks_hit ;/* # of shared buffer hits */
107107int64 shared_blks_read ;/* # of shared disk blocks read */
108108int64 shared_blks_dirtied ;/* # of shared disk blocks dirtied */
109109int64 shared_blks_written ;/* # of shared disk blocks written */
110- int64 local_blks_hit ;/* # of local buffer hits */
111- int64 local_blks_read ;/* # of local disk blocks read */
110+ int64 local_blks_hit ;/* # of local buffer hits */
111+ int64 local_blks_read ;/* # of local disk blocks read */
112112int64 local_blks_dirtied ;/* # of local disk blocks dirtied */
113113int64 local_blks_written ;/* # of local disk blocks written */
114- int64 temp_blks_read ;/* # of temp blocks read */
114+ int64 temp_blks_read ;/* # of temp blocks read */
115115int64 temp_blks_written ;/* # of temp blocks written */
116- double time_read ; /* time spent reading, in msec */
117- double time_write ; /* time spent writing, in msec */
118- double usage ;/* usage factor */
116+ double blk_read_time ; /* time spent reading, in msec */
117+ double blk_write_time ; /* time spent writing, in msec */
118+ double usage ;/* usage factor */
119119}Counters ;
120120
121121/*
@@ -846,10 +846,10 @@ pgss_ProcessUtility(Node *parsetree, const char *queryString,
846846pgBufferUsage .temp_blks_read - bufusage_start .temp_blks_read ;
847847bufusage .temp_blks_written =
848848pgBufferUsage .temp_blks_written - bufusage_start .temp_blks_written ;
849- bufusage .time_read = pgBufferUsage .time_read ;
850- INSTR_TIME_SUBTRACT (bufusage .time_read ,bufusage_start .time_read );
851- bufusage .time_write = pgBufferUsage .time_write ;
852- INSTR_TIME_SUBTRACT (bufusage .time_write ,bufusage_start .time_write );
849+ bufusage .blk_read_time = pgBufferUsage .blk_read_time ;
850+ INSTR_TIME_SUBTRACT (bufusage .blk_read_time ,bufusage_start .blk_read_time );
851+ bufusage .blk_write_time = pgBufferUsage .blk_write_time ;
852+ INSTR_TIME_SUBTRACT (bufusage .blk_write_time ,bufusage_start .blk_write_time );
853853
854854/* For utility statements, we just hash the query string directly */
855855queryId = pgss_hash_string (queryString );
@@ -1021,8 +1021,8 @@ pgss_store(const char *query, uint32 queryId,
10211021e -> counters .local_blks_written += bufusage -> local_blks_written ;
10221022e -> counters .temp_blks_read += bufusage -> temp_blks_read ;
10231023e -> counters .temp_blks_written += bufusage -> temp_blks_written ;
1024- e -> counters .time_read += INSTR_TIME_GET_MILLISEC (bufusage -> time_read );
1025- e -> counters .time_write += INSTR_TIME_GET_MILLISEC (bufusage -> time_write );
1024+ e -> counters .blk_read_time += INSTR_TIME_GET_MILLISEC (bufusage -> blk_read_time );
1025+ e -> counters .blk_write_time += INSTR_TIME_GET_MILLISEC (bufusage -> blk_write_time );
10261026e -> counters .usage += USAGE_EXEC (total_time );
10271027
10281028SpinLockRelease (& e -> mutex );
@@ -1163,8 +1163,8 @@ pg_stat_statements(PG_FUNCTION_ARGS)
11631163values [i ++ ]= Int64GetDatumFast (tmp .temp_blks_written );
11641164if (sql_supports_v1_1_counters )
11651165{
1166- values [i ++ ]= Float8GetDatumFast (tmp .time_read );
1167- values [i ++ ]= Float8GetDatumFast (tmp .time_write );
1166+ values [i ++ ]= Float8GetDatumFast (tmp .blk_read_time );
1167+ values [i ++ ]= Float8GetDatumFast (tmp .blk_write_time );
11681168}
11691169
11701170Assert (i == (sql_supports_v1_1_counters ?