Getting all queries that django run on postgresql

前端 未结 4 390
傲寒
傲寒 2021-01-19 14:31

I am working on a django-postgresql project and I need to see every query that django run on database(so I can fine-tune queries). Is there a way to get those queries. Updat

4条回答
  •  独厮守ぢ
    2021-01-19 15:18

    Well, you could just set the pgsql server to log every query. Or just to log the slow ones. Look in the postgresql.conf file, it's pretty close to self-documenting.

提交回复
热议问题