X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 5717B30FC68 for ; Wed, 25 Jun 2003 17:56:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 80151-04 for ; Wed, 25 Jun 2003 14:55:57 -0300 (ADT) Received: from ooc.nf.ca (unknown [142.163.252.20]) by svr1.postgresql.org (Postfix) with ESMTP id 3B8BF30F6D7 for ; Wed, 25 Jun 2003 14:55:57 -0300 (ADT) Received: from homer.ooc.nf.ca (homer.ooc.nf.ca [10.68.8.2]) by ooc.nf.ca (8.9.3/8.9.3) with ESMTP id PAA13364 for ; Wed, 25 Jun 2003 15:18:24 -0230 Received: (from mpinhorn@localhost) by homer.ooc.nf.ca (8.11.6/8.11.6) id h5PHuBJ28241 for pgsql-admin@postgresql.org; Wed, 25 Jun 2003 15:26:11 -0230 Date: Wed, 25 Jun 2003 15:26:10 -0230 From: Matthew Pinhorn To: pgsql-admin@postgresql.org Subject: Tracing used SQL statments Message-ID: <20030625152610.B28118@iona.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Archive-Number: 200306/293 X-Sequence-Number: 9284 Hello, I am wondering if somebody can help me. I want to know if there is a way that I can make some kind of a log file of all of the SQL statements that are used in my database. It was suggested to make that I could make a trace of them and I am not sure how to do that. I have inherited a database from a former co-worker and now I am starting to get crashes. The crashes has SET TRANSACTION ISOLATION LEVEL messages in the log file. So I think that there is a lock on the database. And if I can see the queries that are causing the crash I might be able to fix the problem. Thanks Matthew -- Matthew Pinhorn E-Mail: mailto:matthew.pinhorn@iona.com IONA WWW: http://www.orbacus.com Making Software Work Together (tm) Phone: (709) 738-3725 x 10