Re: [PATCHES] log session end - again - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] log session end - again
Date
Msg-id 200402051348.i15DmUY16787@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] log session end - again  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] log session end - again  (Andrew Dunstan <andrew@dunslane.net>)
Re: [PATCHES] log session end - again  (Chester Kustarz <chester@arbor.net>)
List pgsql-hackers
Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
> > Right. And if we have sessionids we would want them logged there, I 
> > think. And that would rule out anything based on xid or backend pid. 
> 
> Uh, what's wrong with backend pid?  Since we fork before we start doing
> anything with a connection, it should surely be available soon enough
> for the connection log message.
> 
> Larry's idea about combining PID and backend start time didn't sound too
> unreasonable to me.

Wow, like the idea too --- pid plus time_t start time of backend. 
Actully, it would be good to have star time first so you can sort
everything in order of start time.

--  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,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: [pgsql-hackers-win32] Sync vs. fsync during checkpoint
Next
From: Andrew Dunstan
Date:
Subject: Re: [PATCHES] log session end - again