How to identify my most expensive queries using pg_stat_statements
First enable the library for the server by adding the following line to postgresql.conf:
shared_preload_libraries = 'pg_stat_statements'
If you've installed postgresql with homebrew, the configuration file is at /usr/local/var/postgres/postgresql.conf
Then enable the extension for the databases that you're interested in with