Re: SQL statement logging: picking up strange queries from "pg_catalog" - Mailing list pgsql-general

From Tom Lane
Subject Re: SQL statement logging: picking up strange queries from "pg_catalog"
Date
Msg-id 19250.1278199479@sss.pgh.pa.us
Whole thread Raw
In response to Re: SQL statement logging: picking up strange queries from "pg_catalog"  (Graham Leggett <minfrin@sharp.fm>)
List pgsql-general
Graham Leggett <minfrin@sharp.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

pgsql-general by date:

Previous
From: Graham Leggett
Date:
Subject: Re: SQL statement logging: picking up strange queries from "pg_catalog"
Next
From: Andre Lopes
Date:
Subject: How to know if an INSERT is done inside a function?