| От | Joe Conway |
|---|---|
| Тема | Re: [JDBC] problem with new autocommit config parameter |
| Дата | |
| Msg-id | 3D7A4FA4.9070102@joeconway.com обсуждение исходный текст |
| Ответ на | Re: [JDBC] problem with new autocommit config parameter and (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: [JDBC] problem with new autocommit config parameter
|
| Список | pgsql-hackers |
snpe wrote:
>>Sure, you can do SHOW autocommit.
>
> I am interesting with JDBC driver.
> When I make connection in base I want that driver find autocommit mode
> (from postgresql.conf or call in backend) and set mode true or false
>
You could make a call to current_setting in the backend.
I don't know anything about the jdbc driver, but if it's written in C
something like this should work:
text *autocommit = DatumGetTextP(DirectFunctionCall1(current_setting,
CStringGetDatum("autocommit")));
Would this work?
Joe
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера