From: Peter Eisentraut <peter_e@gmx.net>
To: Bryan White <bryan@arcamax.com>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Client Logging
Date: Sun, 11 Jun 2000 13:45:51 +0200 (CEST)
Message-ID: <Pine.LNX.4.21.0006111146530.353-100000@localhost.localdomain> (raw)
In-Reply-To: <00b701bfd227$58eabec0$2dd260d1@arcamax.com>
Bryan White writes:
> I sometimes need to be able to identify what client application is
> causing messages that are appering in the backend log file.
I've been thinking about that too a while ago, but it depends on whether
you want to do this for auditing purposes, in which case
> 1) An identification string passed when a connection is established. This
> string would either be immediatly logged or included in the log entry for
> any subsequent messages for that connection.
is not reliable. If you want to have this on a cooperative basis, then
> 3) A function that takes a string argument and calls elog.
is probably reasonable.
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
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-sql@postgresql.org
Cc: peter_e@gmx.net, bryan@arcamax.com
Subject: Re: Client Logging
In-Reply-To: <Pine.LNX.4.21.0006111146530.353-100000@localhost.localdomain>
References: <00b701bfd227$58eabec0$2dd260d1@arcamax.com> <Pine.LNX.4.21.0006111146530.353-100000@localhost.localdomain>
* 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