| От | Michael Paquier |
|---|---|
| Тема | Re: Hooks for session start and end, take two |
| Дата | |
| Msg-id | 20190930012941.GD2888@paquier.xyz обсуждение |
| Ответ на | Re: Hooks for session start and end, take two (Fabrízio de Royes Mello <fabriziomello@gmail.com>) |
| Ответы |
Re: Hooks for session start and end, take two
|
| Список | pgsql-hackers |
On Sat, Sep 28, 2019 at 10:43:36AM -0300, Fabrízio de Royes Mello wrote: > I poked a little with the patch and everything is ok. Your check for normal > backend on test_session_hooks is much simpler than I did before: > > + /* just consider normal backends */ > + if (MyBackendId == InvalidBackendId) > + return; > > But one thing came to my mind, why not in this first version we hook just > normal backends? This code path can only be taken by normal backends, so that would apply, still I don't actually see why we should limit us here on the backend side. If for a reason or another those two code paths begin to be taken by a backend with InvalidBackendId, then users of the session start/end hook will need to think how to handle it if they didn't from the start, which sounds like a good thing to me. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера