5

What is query can I use for show last executed queries in DB PostgreSQL or where (files) can I find this? I use pgADMIN 3

2 Answers2

6

For those on the command line using psql, you can view the command history with

\s

Or print it to a file with

\s filename

See also

Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
1

See the History tab in the output pane.

You can find or change the location of the file under the File/Options... dialog.

rd_nielsen
  • 2,407
  • 2
  • 11
  • 18