Is it possible to get a history of queries made in postgres

前端 未结 7 1967
借酒劲吻你
借酒劲吻你 2021-01-30 03:41

Is it possible to get a history of queries made in postgres? and is it be possible to get the time it took for each query? I\'m currently trying to identify slow queries in the

7条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 04:33

    You can use like

    \s 
    

    it will fetch you all command history of the terminal, to export it to file using

    \s filename
    

提交回复
热议问题