forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit27c3e3d
committed
Remove redundant gettimeofday() calls to the extent practical without
changing semantics too much. statement_timestamp is now set immediatelyupon receipt of a client command message, and the various places that usedto do their own gettimeofday() calls to mark command startup are referencedto that instead. I have also made stats_command_string use that samevalue for pg_stat_activity.query_start for both the command itself andits eventual replacement by <IDLE> or <idle in transaction>. There wassome debate about that, but no argument that seemed convincing enough tojustify an extra gettimeofday() call.1 parent47a37ae commit27c3e3d
File tree
11 files changed
+268
-225
lines changed- src
- backend
- access/transam
- commands
- postmaster
- storage/lmgr
- tcop
- utils
- adt
- error
- mmgr
- include
- libpq
- utils
11 files changed
+268
-225
lines changedLines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 |
| - | |
171 |
| - | |
172 |
| - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
173 | 174 |
| |
174 | 175 |
| |
175 | 176 |
| |
| |||
1386 | 1387 |
| |
1387 | 1388 |
| |
1388 | 1389 |
| |
1389 |
| - | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1390 | 1393 |
| |
1391 | 1394 |
| |
1392 | 1395 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
376 |
| - | |
| 376 | + | |
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
1368 | 1368 |
| |
1369 | 1369 |
| |
1370 | 1370 |
| |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1371 | 1374 |
| |
1372 |
| - | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1373 | 1379 |
| |
1374 | 1380 |
| |
1375 | 1381 |
| |
| |||
1464 | 1470 |
| |
1465 | 1471 |
| |
1466 | 1472 |
| |
1467 |
| - | |
| 1473 | + | |
1468 | 1474 |
| |
1469 | 1475 |
| |
1470 | 1476 |
| |
|
Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
102 |
| - | |
103 | 102 |
| |
104 | 103 |
| |
105 | 104 |
| |
| |||
2609 | 2608 |
| |
2610 | 2609 |
| |
2611 | 2610 |
| |
2612 |
| - | |
2613 |
| - | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
2614 | 2614 |
| |
2615 | 2615 |
| |
2616 | 2616 |
| |
| |||
2749 | 2749 |
| |
2750 | 2750 |
| |
2751 | 2751 |
| |
| 2752 | + | |
| 2753 | + | |
2752 | 2754 |
| |
2753 | 2755 |
| |
2754 | 2756 |
| |
| |||
2758 | 2760 |
| |
2759 | 2761 |
| |
2760 | 2762 |
| |
2761 |
| - | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
2762 | 2766 |
| |
2763 | 2767 |
| |
2764 | 2768 |
| |
|
Lines changed: 40 additions & 33 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
| |||
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
76 |
| - | |
| 77 | + | |
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
| |||
1105 | 1106 |
| |
1106 | 1107 |
| |
1107 | 1108 |
| |
1108 |
| - | |
| 1109 | + | |
1109 | 1110 |
| |
1110 | 1111 |
| |
1111 |
| - | |
1112 |
| - | |
1113 |
| - | |
1114 |
| - | |
1115 |
| - | |
1116 |
| - | |
1117 |
| - | |
1118 |
| - | |
1119 |
| - | |
1120 |
| - | |
1121 |
| - | |
1122 |
| - | |
1123 |
| - | |
1124 | 1112 |
| |
1125 | 1113 |
| |
1126 |
| - | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1127 | 1129 |
| |
| 1130 | + | |
| 1131 | + | |
1128 | 1132 |
| |
1129 |
| - | |
1130 | 1133 |
| |
| 1134 | + | |
1131 | 1135 |
| |
1132 | 1136 |
| |
1133 | 1137 |
| |
| |||
1145 | 1149 |
| |
1146 | 1150 |
| |
1147 | 1151 |
| |
| 1152 | + | |
| 1153 | + | |
1148 | 1154 |
| |
1149 |
| - | |
1150 |
| - | |
1151 |
| - | |
| 1155 | + | |
1152 | 1156 |
| |
1153 | 1157 |
| |
1154 | 1158 |
| |
| |||
1225 | 1229 |
| |
1226 | 1230 |
| |
1227 | 1231 |
| |
1228 |
| - | |
| 1232 | + | |
1229 | 1233 |
| |
1230 | 1234 |
| |
1231 | 1235 |
| |
1232 | 1236 |
| |
1233 |
| - | |
| 1237 | + | |
1234 | 1238 |
| |
1235 |
| - | |
1236 |
| - | |
1237 |
| - | |
| 1239 | + | |
1238 | 1240 |
| |
1239 | 1241 |
| |
1240 | 1242 |
| |
| |||
1244 | 1246 |
| |
1245 | 1247 |
| |
1246 | 1248 |
| |
| 1249 | + | |
| 1250 | + | |
1247 | 1251 |
| |
1248 | 1252 |
| |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
1249 | 1261 |
| |
1250 |
| - | |
1251 |
| - | |
1252 |
| - | |
1253 |
| - | |
1254 |
| - | |
1255 |
| - | |
1256 |
| - | |
| 1262 | + | |
| 1263 | + | |
1257 | 1264 |
| |
1258 | 1265 |
| |
1259 | 1266 |
| |
|
0 commit comments
Comments
(0)