View Queries to server

Started by Ryan Mahoneyalmost 25 years ago3 messagesgeneral
Jump to latest
#1Ryan Mahoney
ryan@paymentalliance.net

Is it possible to view the last 100 queries issued to the database?

-r

#2Einar Karttunen
ekarttun@cs.Helsinki.FI
In reply to: Ryan Mahoney (#1)
Re: View Queries to server

On Thu, 3 May 2001, Ryan Mahoney wrote:

Is it possible to view the last 100 queries issued to the database?

If you have set the backend to log queries this should be trivial. You
can set the level of output from command line or from postgresql.conf,
which I think is a better approach. If you don't log the queries I
don't think there is a way to implement it.

- Einar Karttunen

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Ryan Mahoney (#1)
Re: View Queries to server

Ryan Mahoney writes:

Is it possible to view the last 100 queries issued to the database?

Turn on query logging and search the log file.

--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter