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 2EB68D1B52D for ; Tue, 27 Apr 2004 16:47:53 -0300 (ADT) 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 88986-08 for ; Tue, 27 Apr 2004 16:47:50 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 6A32BD1B519 for ; Tue, 27 Apr 2004 16:47:47 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i3RJlmU02407; Tue, 27 Apr 2004 15:47:48 -0400 (EDT) From: Bruce Momjian Message-Id: <200404271947.i3RJlmU02407@candle.pha.pa.us> Subject: Re: Breaking out log by database In-Reply-To: <20040427192618.GA2758@wolff.to> To: Bruno Wolff III Date: Tue, 27 Apr 2004 15:47:48 -0400 (EDT) Cc: Chris Hoover , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/325 X-Sequence-Number: 13298 \Bruno Wolff III wrote: > On Tue, Apr 27, 2004 at 13:21:34 -0400, > Chris Hoover wrote: > > Question, > > > > I have several db servers that have postgresql clusters with many db's (5 upto > > 170) in them. Is there a way to breakout the postgres logs by the database? > > I don't think it is possible to do that in the released versions, but I know > there was some discussions about adding the database name to the log records > not too long ago. (Within the last couple of months.) So it may not be too > hard to do this in 7.5 when it is released. In 7.5, you have log_line_prefix, which can contain the database name as a prefix on each log line. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073