Received: from merganser.its.uu.se (merganser.its.uu.se [130.238.6.236]) by hub.org (8.10.1/8.10.1) with ESMTP id e5BBeCT50573 for ; Sun, 11 Jun 2000 07:40:12 -0400 (EDT) Received: from regulus.student.UU.SE ([130.238.5.2]:54567 "EHLO regulus.its.uu.se") by merganser.its.uu.se with ESMTP id ; Sun, 11 Jun 2000 13:39:42 +0200 Received: from peter (helo=localhost) by regulus.its.uu.se with local-esmtp (Exim 3.02 #2) id 1316Bb-0003jU-00; Sun, 11 Jun 2000 13:45:51 +0200 Date: Sun, 11 Jun 2000 13:45:51 +0200 (CEST) From: Peter Eisentraut To: Bryan White cc: pgsql-sql Subject: Re: Client Logging In-Reply-To: <00b701bfd227$58eabec0$2dd260d1@arcamax.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Archive-Number: 200006/116 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