| От | Peter |
|---|---|
| Тема | Re: Totally weird behaviour in org.postgresql.Driver |
| Дата | |
| Msg-id | 49c0c935$0$1343$834e42db@reader.greatnowhere.com обсуждение исходный текст |
| Ответ на | Totally weird behaviour in org.postgresql.Driver ("Peter" <peter@greatnowhere.com>) |
| Список | pgsql-jdbc |
> Yes, that is what I was suggesting in my previous post. From an old > thread titled "can I define own variables?": > > ======= > To do this, you need to set custom_variable_classes in postgresql.conf, > perhaps > custom_variable_classes = uservars > > and then you can do things like > > SET uservars.foo = whatever; > SHOW uservars.bar; > ====== > > So, you can use pooled connections for scalability. After you retrieve a > connection, set your user variable to contain the end user identifier. > Then you can retrieve it as necessary (e.g., in a trigger) for the > duration of the connection. Excellent suggestion! Thanks a lot! Peter
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера