Обсуждение: Log statement length limit

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

Log statement length limit

От
Brian Herlihy
Дата:
Hi,

How do I get postgres to log only the first n characters of a command?

Actually, ideal would be if it would log the structure of the command but cut short any long data values.  Such as

UPDATE table SET value = 'something really long which is cut ...' WHERE pkey = 'foo'

The idea being that I don't care too much what value is, but I need to know foo.

Thanks!
Brian