title: PostgreSQL - proxying queries and logging them
body: <p>Is there a way to log user queries in PostgreSQL, then store them as logfiles onto the server-side filesystem? (A proxy or something like that?)</p>
  
  <p>PgBouncer doesn't log queries, tsung-recorder does log them, however the results are stored in the XML format (as opposed to simple text) abd without timestamps &amp; user information. Any suggestions?</p>