pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Harrison <mh@pixar.com>
To: pgsql-admin@postgresql.org
Subject: log file: showing disconnects as well as connects?
Date: Wed, 28 Jan 2004 12:00:51 -0800
Message-ID: <401814F3.1030702@pixar.com> (raw)

Here's a quickie script to watch a particular session:

tail -f $LOG | awk '
/connection received: host='$1'/ { pid = $3 }
$3 == pid { print }'

Is there something in the log file which will indicate
a disconnect as well?

Many TIA,
Mark




Message-ID: <401814F3.1030702@pixar.com>
Permalink:  ../401814F3.1030702@pixar.com/
Also on:    postgresql.org/message-id/401814F3.1030702@pixar.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-admin@postgresql.org
  Cc: mh@pixar.com
  Subject: Re: log file: showing disconnects as well as connects?
  In-Reply-To: <401814F3.1030702@pixar.com>
  References: <401814F3.1030702@pixar.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