| От | Alvaro Herrera |
|---|---|
| Тема | Re: log bind parameter values on error |
| Дата | |
| Msg-id | 20191107220228.GA8765@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: log bind parameter values on error (Alexey Bashtanov <bashtanov@imap.cc>) |
| Ответы |
Re: log bind parameter values on error
|
| Список | pgsql-hackers |
So, if some parameters are large (they can be up to 1 GB-1, remember) then we can bloat the log file severely. I think we need to place an upper limit on the strings that we're going to log -- as inspiration, callers of ExecBuildValueDescription uses 64 chars per value maximum. Something like that seems reasonable. So I think you need to add some pg_mbcliplen() calls in a couple of places in exec_bind_message. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера