When running a specific script that does some database queries on Heroku I'm getting an insufficient amount of information from my traceback to solve my problem.
(django.db.utils.DatabaseError: current transaction is aborted, commands ignored until end of transaction)
I would like to get more information about the problem from postgresl, I am able to access the logs of my local postgresql like this.
But on Heroku, running heroku logs -p postgres returns no information at all. 
 
     
    