X-Original-To: pgsql-admin@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 8FC2F925747 for ; Thu, 22 May 2003 19:59:40 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 91605-06 for ; Thu, 22 May 2003 19:59:08 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by developer.postgresql.org (Postfix) with ESMTP id 56B22925BAF for ; Thu, 22 May 2003 17:46:53 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h4MLZHC08652; Thu, 22 May 2003 17:35:17 -0400 (EDT) From: Bruce Momjian Message-Id: <200305222135.h4MLZHC08652@candle.pha.pa.us> Subject: Re: logging modifying statements only In-Reply-To: <20030520141433.Y80651@woozle.rinet.ru> To: Dmitry Morozovsky Date: Thu, 22 May 2003 17:35:17 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/319 X-Sequence-Number: 8881 Dmitry Morozovsky wrote: > Hello there colleagues, > > this question possibly had been asked in past, by I didn't find any definitive > answer. > > Is there currently (7.3.2) a way to log only modifying statements (and, surely, > accompanying begin/commit/rollbacks) and skip select's? > > Or, should I hack backend/tcop/postgres.c myself? ;-) [yes, I suppose I cound > apparently miss something] There is no 'log modify statements only' option --- you will have to change postgres.c. -- 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