I am writing a node.js app on Heroku and using the pg module. I can\'t figure out the \"right\" way to get a client object for each request that I need to query the database
As you can see from the documentation both options are valid, so choose whichever you prefer. As you, I would go with the second choice.