Re: Any way to *not* use server-side prepared statements in Postgresql?
В списке pgsql-jdbc по дате отправления:
| От | Craig Ringer |
|---|---|
| Тема | Re: Any way to *not* use server-side prepared statements in Postgresql? |
| Дата | |
| Msg-id | 4E250136.4070807@postnewspapers.com.au обсуждение |
| Ответ на | Any way to *not* use server-side prepared statements in Postgresql? (Yang Zhang <yanghatespam@gmail.com>) |
| Список | pgsql-jdbc |
On 19/07/11 10:07, Yang Zhang wrote: > Is there any way to circumvent server prepared statements? If it makes > a difference, I'm asking regarding PG 8.4 and 9.0. Thanks in advance. http://jdbc.postgresql.org/documentation/84/server-prepare.html Set the prepare threshold using a call to the PGStatement interface of the Statement you're interested in to control it on a statement by statement level. This requires access to the real, unwrapped Statement instance, which isn't available through some connection pooling systems. You can set the prepare threshold using the prepareThreshold connection argumnent to set it for all statements. Whether 0 or -1 disables prepared statements don't seem to be documented. Check the PgJDBC sources, or give it a try and see. -- Craig Ringer
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера