An ancestor of pgFouine, Practical Query Analysis or pqa is a project located at http://pqa.projects.postgresql.org/ that provides some basic query analysis. The program is fairly small and has minimal dependencies due to its small feature set and use of Ruby as its programming language. However, it hasn't been updated in several years, and doesn't support recent features such as the CSV logging format.