pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: SZŰCS Gábor <surrano@mailbox.hu>
To: pgsql-sql@postgresql.org
Subject: Re: Overwhelming DEBUG messages
Date: Thu, 8 May 2003 19:06:40 +0100
Message-ID: <200305081906.40734.dev@archonet.com> (raw)
In-Reply-To: <009701c31582$16374ac0$0a03a8c0@fejleszt2>
References: <009701c31582$16374ac0$0a03a8c0@fejleszt2>

On Thursday 08 May 2003 5:51 pm, SZŰCS Gábor 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

-- 
  Richard Huxton




view thread (4+ messages)  latest in thread

Message-ID: <200305081906.40734.dev@archonet.com>
Permalink:  ../200305081906.40734.dev@archonet.com/
Also on:    postgresql.org/message-id/200305081906.40734.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, surrano@mailbox.hu
  Subject: Re: Overwhelming DEBUG messages
  In-Reply-To: <200305081906.40734.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox