I'm building an application on Node, Bookshelf and Knex and for learning and performance reasons I'd like to see what queries are being executed live on Postgres.
How can I do it? I'm not paricularly interested in a profiler if that means the queries will be stored on log files. I just want to see what is happening right now.
Possible solutions:
- An application like the SQL Server profiler, as long as it displays live queries
- A way to make Bookshelf or Knex to output queries to the console
Unfortunately I searched Google to no avail.