Обсуждение: logging modifying statements only

Поиск
Список
Период
Сортировка

logging modifying statements only

От
Dmitry Morozovsky
Дата:
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]

Any ideas?

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------

Re: logging modifying statements only

От
Bruce Momjian
Дата:
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