X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 58E48D1B509 for ; Fri, 14 Nov 2003 14:35:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89208-07 for ; Fri, 14 Nov 2003 10:34:52 -0400 (AST) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id 964F3D1B4F9 for ; Fri, 14 Nov 2003 10:34:47 -0400 (AST) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 1AKf1w-0008IE-00 for ; Fri, 14 Nov 2003 09:34:36 -0500 Received: by dba2 (Postfix, from userid 1019) id A2874CB49; Fri, 14 Nov 2003 09:34:36 -0500 (EST) Date: Fri, 14 Nov 2003 09:34:36 -0500 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: Logging: statements and users Message-ID: <20031114143436.GA27483@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <20031113071009.88819.qmail@web21405.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031113071009.88819.qmail@web21405.mail.yahoo.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/268 X-Sequence-Number: 11255 On Wed, Nov 12, 2003 at 11:10:09PM -0800, ow wrote: > Hi, > > It appears that pgSql can be configured to log the executed statements. > However, the log does not appear to contain any info about who's running the > statement. Any way to change this? You can log the pid and log connections, and then trace back to see who connected with that pid. There was some discussion about improving this for 7.4, but I don't know if any of that was done. A -- ---- Andrew Sullivan 204-4141 Yonge Street Afilias Canada Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110