| От | Peter Eisentraut |
|---|---|
| Тема | Re: Per-session data? |
| Дата | |
| Msg-id | 200405031948.02067.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Per-session data? (Steve Atkins <steve@blighty.com>) |
| Список | pgsql-general |
Steve Atkins wrote: > I need to keep a small amount of information (things like a unique > session identifier, the application - as opposed to database - > username and so on) that is local to each database session. It needs > to be visible from within plpgsql trigger functions and will be used > on a large fraction of updates. > Create a temporary table at the beginning of each session > containing the data, and simply read it out of that, relying on the > temporary table to be session-local. This is exactly how you should do it.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера