Commit 416f8ea
Add wait events for COPY file/program operations
Add two new IO wait events for COPY operations:
- COPY_DATA_READ: When COPY FROM blocks reading from file or program
- COPY_DATA_WRITE: When COPY TO blocks writing to file or program
These events cover:
- COPY FROM/TO file (including slow storage I/O)
- COPY FROM/TO PROGRAM (pipe buffer congestion in ETL pipelines)
Note: COPY FROM/TO STDIN/STDOUT already have wait event coverage via
existing Client/ClientRead and Client/ClientWrite events emitted at
the protocol layer, so no additional instrumentation is needed there.
This enables DBAs to:
- Diagnose slow pg_dump/pg_restore operations
- Identify storage I/O bottlenecks during bulk loads
- Analyze pipe buffer congestion in ETL pipelines
- Perform ASH analysis of COPY operations1 parent b8ccd29 commit 416f8ea
3 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
460 | 461 | | |
| 462 | + | |
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| |||
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
| 491 | + | |
489 | 492 | | |
490 | 493 | | |
491 | 494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| |||
0 commit comments