how do I get a log of SQL executed by server?

Started by Ken Guestabout 23 years ago3 messagesgeneral
Jump to latest
#1Ken Guest
kguest@stockbyte.com

with mysql it's possible to get a log of all sql that the server executes.
Is this possible with postgres and how do I turn this on?

thanks ever so much

Ken

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

#2Robert Treat
xzilla@users.sourceforge.net
In reply to: Ken Guest (#1)
Re: how do I get a log of SQL executed by server?

On Thu, 2003-02-06 at 12:18, Ken Guest wrote:

with mysql it's possible to get a log of all sql that the server executes.
Is this possible with postgres and how do I turn this on?

thanks ever so much

Ken

You'll want to check out the DEBUG_PRINT_* settings in the
postgresql.conf file. See section 3.4 in the administrator's guide
-- http://www.gtsm.com/cgi/psearch?page=runtime-config.html

Robert Treat

#3Bruce Momjian
bruce@momjian.us
In reply to: Robert Treat (#2)
Re: how do I get a log of SQL executed by server?

In 7.3, it is log_statement.

---------------------------------------------------------------------------

Robert Treat wrote:

On Thu, 2003-02-06 at 12:18, Ken Guest wrote:

with mysql it's possible to get a log of all sql that the server executes.
Is this possible with postgres and how do I turn this on?

thanks ever so much

Ken

You'll want to check out the DEBUG_PRINT_* settings in the
postgresql.conf file. See section 3.4 in the administrator's guide
-- http://www.gtsm.com/cgi/psearch?page=runtime-config.html

Robert Treat

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073