Online Documentation for SQL Query for PostgreSQL
Setting log options
The Logs section of the Database Registration Info dialog allows you to set SQL Query logging parameters.
Enable log of SQL Editor queries
Check this option if you wish to log your SQL queries in a file.
SQL Editor log file
This field is enabled if the Enable log of SQL Editor queries option is selected. Here you can specify the path to the *.sql file to store the logs of SQL queries.