Received: from mail.libertyrms.com (unknown [216.94.172.167]) by postgresql.org (Postfix) with ESMTP id 6BB29475A6B for ; Mon, 29 Jul 2002 08:44:13 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 17Z9sj-0002I8-00 for ; Mon, 29 Jul 2002 08:44:13 -0400 Date: Mon, 29 Jul 2002 08:44:13 -0400 From: Andrew Sullivan To: pgsql-general@postgresql.org Subject: Re: log sql? Message-ID: <20020729084413.A8252@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-general@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from laurette@nextbus.com on Fri, Jul 26, 2002 at 03:27:45PM -0700 X-Archive-Number: 200207/1727 X-Sequence-Number: 28214 On Fri, Jul 26, 2002 at 03:27:45PM -0700, Laurette Cisneros wrote: > > Is there way to track each sql statement and the user for the server? Sort of. Turn on query logging in the postgresql.conf file, and also log connections and PID. Then, you can track back by using the PID, to discovere who logged in (and therefore, who issued that query). A -- ---- Andrew Sullivan 87 Mowat Avenue Liberty RMS Toronto, Ontario Canada M6K 3E3 +1 416 646 3304 x110