| От | David Steele |
|---|---|
| Тема | [PROPOSAL] Client Log Output Filtering |
| Дата | |
| Msg-id | 5655B621.3080906@pgmasters.net обсуждение исходный текст |
| Ответы |
Re: [PROPOSAL] Client Log Output Filtering
|
| Список | pgsql-hackers |
Currently log messages generated by pgaudit can be made visible to the client simply by altering client_min_messages. While this has not been a showstopper for anyone it's ideal, either. The client authentication code sets the global variable ClientAuthInProgress which causes ereport() to filter client output < ERROR while forcing client output >= ERROR. This functionality would also work well for pgaudit. The patch creates a new counter to separate the log filtering from the authentication functionality. This makes it possible to get the same filtering in other parts of the code (or extensions) without abusing the ClientAuthInProgress variable or using the log hook. I also considered a new function for ereport (like errhidecontext()) but this mechanism would not have worked for authentication and so would not have been used anywhere in core. If there are no objections I'll submit it to the next commitfest. -- -David david@pgmasters.net
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера