Re: SQL statement logging: picking up strange queries from "pg_catalog"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Graham Leggett <minfrin(at)sharp(dot)fm>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL statement logging: picking up strange queries from "pg_catalog"
Date: 2010-07-03 23:24:39
Message-ID: 19250.1278199479@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Graham Leggett <minfrin(at)sharp(dot)fm> writes:
> Does postgresql have an access log where the lifetime of database
> connections are tracked? Specifically tracking when the client
> connected, and how long the client stayed connected for.

See log_connections and log_disconnections. You probably want to
add PID to log_line_prefix, too, so that you can associate different
log entries for the same session.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andre Lopes 2010-07-04 10:01:51 How to know if an INSERT is done inside a function?
Previous Message Graham Leggett 2010-07-03 23:22:24 Re: SQL statement logging: picking up strange queries from "pg_catalog"