pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Logging from multiple connections
Date: Thu, 24 Nov 2005 12:28:38 +1300
Message-ID: <4384FB26.1020902@opencloud.com> (raw)
In-Reply-To: <43849F580200002500000914@gwmta.wicourts.gov>
References: <43849F580200002500000914@gwmta.wicourts.gov>

Kevin Grittner wrote:

> Wading through loglevel=2 output today, it occurred to me that it would
> be nice if the jdbc log file included a prefix with something to
> identify the connection.  Sometimes you can only get an error to occur
> on a busy system with multiple active connections, and the jdbc log
> currently mixes everything together, which can make it hard to follow.

Yes, this is on my todo list..

The simplest way to do it seems to be to just have a static driver-wide 
counter to assign IDs to connections.

I considered backend PID, but that could in theory be duplicated, and 
you can always match up PID to connection ID from the initial connection 
setup logging.

-O



view thread (3+ messages)  latest in thread

Message-ID: <4384FB26.1020902@opencloud.com>
Permalink:  ../4384FB26.1020902@opencloud.com/
Also on:    postgresql.org/message-id/4384FB26.1020902@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, Kevin.Grittner@wicourts.gov
  Subject: Re: Logging from multiple connections
  In-Reply-To: <4384FB26.1020902@opencloud.com>
  References: <43849F580200002500000914@gwmta.wicourts.gov> <4384FB26.1020902@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox