X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id ED333476668 for ; Thu, 8 May 2003 14:06:47 -0400 (EDT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by postgresql.org (Postfix) with ESMTP id D2F9B476663 for ; Thu, 8 May 2003 14:06:43 -0400 (EDT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 19Dpn1-0003Vh-0Z; Thu, 08 May 2003 19:06:43 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id BF67A16D4F; Thu, 8 May 2003 19:06:41 +0100 (BST) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id 2FC5116D48; Thu, 8 May 2003 19:06:41 +0100 (BST) Content-Type: text/plain; charset="iso-8859-2" From: Richard Huxton Organization: Archonet Ltd To: "=?iso-8859-2?q?SZ=DBCS?= =?iso-8859-2?q?=20G=E1bor?=" , Subject: Re: Overwhelming DEBUG messages Date: Thu, 8 May 2003 19:06:40 +0100 User-Agent: KMail/1.4.3 References: <009701c31582$16374ac0$0a03a8c0@fejleszt2> In-Reply-To: <009701c31582$16374ac0$0a03a8c0@fejleszt2> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200305081906.40734.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Spam-Status: No, hits=-38.9 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_KMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/175 X-Sequence-Number: 13340 On Thursday 08 May 2003 5:51 pm, SZ=DBCS G=E1bor wrote: > My problem is: I'd like to see DEBUG messages in the server log, but if I > set SERVER_MIN_MESSAGES to debug (also tried debug1 and debug5), the log > gets filled with these: > > 2003-05-08 18:39:57 [12788] DEBUG: StartTransactionCommand > 2003-05-08 18:39:57 [12788] DEBUG: CommitTransactionCommand > > Is there a way to configure postgres (including compile-time) not to log > such in the server log? IANAD (I am not a developer) but you've probably got two options: 1. Go through the source and comment out "elog()" calls you don't want. 2. Write a short script to grep out the lines you don't want to see. The second could be done with something along the lines of: grep -v -f file-with-patterns-in-it --=20 Richard Huxton