What's PQA?  It's a Ruby query analysis utility - it produces HTML
reports on slowest queries, most frequent queries, queries by type
(select/insert/update/delete), and all that sort of thing for PostgreSQL
and MySQL database logs.  Here's an example report:

http://pqa.projects.postgresql.org/example.html

and you can download it here:

http://pgfoundry.org/projects/pqa/

and the changelog is here:

http://pgfoundry.org/frs/shownotes.php?release_id=142

Yours,

Tom