forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb62e605
committed
pg_stat_statements: track number of rows processed by REFRESH MATERIALIZED VIEW.
Commit6023b7e allowed pg_stat_statements to track the numberof rows retrieved or affected by some utility commands includingCREATE MATERIALIZED VIEW. However it did not track the rowcountof REFRESH MATERIALIZED VIEW. This commit allows pg_stat_statementsto track that.To track that, this commit changes the query completion forREFRESH MATERIALIZED VIEW so that it saves the rowcount. But note thatthe rowcount is still not displayed in the command completion tag output.That is, the display_rowcount flag of CMDTAG_REFRESH_MATERIALIZED_VIEWcommand tag is left false in cmdtaglist.h. Otherwise, the change ofcompletion tag output might break applications using it.Author: Katsuragi Yuta, Seino YukiReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/71f6bc72f8bbaa06e701f8bd2562c347@oss.nttdata.comDiscussion:https://postgr.es/m/aadbfba9-e4bb-9531-6b3a-d13c31c8f4fe@oss.nttdata.com1 parent03f9cd9 commitb62e605
File tree
4 files changed
+24
-9
lines changed- contrib/pg_stat_statements
- expected
- sql
- src/backend/commands
4 files changed
+24
-9
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
533 |
| - | |
534 |
| - | |
| 533 | + | |
| 534 | + | |
535 | 535 |
| |
536 | 536 |
| |
537 | 537 |
| |
| |||
543 | 543 |
| |
544 | 544 |
| |
545 | 545 |
| |
| 546 | + | |
546 | 547 |
| |
547 | 548 |
| |
548 | 549 |
| |
| |||
586 | 587 |
| |
587 | 588 |
| |
588 | 589 |
| |
| 590 | + | |
589 | 591 |
| |
590 | 592 |
| |
591 | 593 |
| |
592 |
| - | |
| 594 | + | |
593 | 595 |
| |
594 | 596 |
| |
595 | 597 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1171 | 1171 |
| |
1172 | 1172 |
| |
1173 | 1173 |
| |
1174 |
| - | |
1175 |
| - | |
1176 |
| - | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1177 | 1177 |
| |
1178 | 1178 |
| |
1179 | 1179 |
| |
1180 |
| - | |
| 1180 | + | |
| 1181 | + | |
1181 | 1182 |
| |
1182 | 1183 |
| |
1183 | 1184 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
252 | 252 |
| |
253 | 253 |
| |
254 | 254 |
| |
255 |
| - | |
256 |
| - | |
| 255 | + | |
| 256 | + | |
257 | 257 |
| |
258 | 258 |
| |
259 | 259 |
| |
| |||
265 | 265 |
| |
266 | 266 |
| |
267 | 267 |
| |
| 268 | + | |
268 | 269 |
| |
269 | 270 |
| |
270 | 271 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
356 | 356 |
| |
357 | 357 |
| |
358 | 358 |
| |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
359 | 370 |
| |
360 | 371 |
| |
361 | 372 |
| |
|
0 commit comments
Comments
(0)