Step 8: High I/O Usage and Temporary Files:

ARTIFACTORY : What all information needs to be collected from PostgreSQL when debugging performance related issues in Artifactory

AuthorFullName__c
Vignesh Surendrababu
articleNumber
000005835
ft:sourceType
Salesforce
FirstPublishedDate
2023-08-03T11:32:48Z
lastModifiedDate
2023-08-03
VersionNumber
2
High temporary file usage can be a symptom of performance issues in the database. It might indicate inefficient query execution plans, inadequate memory allocation, or excessive sorting or hashing operations. By examining the temporary file usage, you can identify databases or queries that contribute to excessive disk I/O and investigate further to optimize their performance.

To monitor I/O activity and temporary file usage, execute the relevant queries to display the temporary files usage per database, impacting I/O activity.
SELECT
  datname,
  temp_files AS "Temporary files",
  pg_size_pretty(temp_bytes) AS "Size of temporary files",
  stats_reset
FROM pg_stat_database db
ORDER BY temp_bytes DESC;