Skip site navigation (1) Skip section navigation (2)

Re: logging modifying statements only

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Dmitry Morozovsky <marck(at)rinet(dot)ru>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: logging modifying statements only
Date: 2003-05-22 21:35:17
Message-ID: 200305222135.h4MLZHC08652@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-admin by date

Next:From: Alex.H.PollockDate: 2003-05-22 21:57:44
Subject: Re: audit trail
Previous:From: Tom LaneDate: 2003-05-22 21:32:16
Subject: Re: Backend exited with signal 14?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group