Re: BUG #3800: Java/Postgres PreparedStatement returns stale data

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: BUG #3800: Java/Postgres PreparedStatement returns stale data
Дата
Msg-id Pine.BSO.4.64.0712052313360.26346@leary.csoft.net
обсуждение исходный текст
Ответ на BUG #3800: Java/Postgres PreparedStatement returns stale data  ("Michael Han" <michael.han@ngc.com>)
Список pgsql-bugs
On Wed, 5 Dec 2007, Michael Han wrote:

> The following bug has been logged online:
>
> Bug reference:      3800
> PostgreSQL version: 8.2
> Description:        Java/Postgres PreparedStatement returns stale data
> Details:
>
> PROBLEM :  Java/Postgres Returns Stale data when underlying Table View is
> Replaced

Prior to the 8.3 release, prepared plans don't notice when underlying
objects change.  Aside from waiting for 8.3, the only workaround is to
prevent the JDBC driver from reusing the same server plan.  By default
the JDBC driver reuses the server plan after the 5th execution, and you
can adjust this by the prepareThreshold URL parameter.  You can disable
plan reuse by adding prepareThreshold=0.

Kris Jurka

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Reece Hart"
Дата:
Сообщение: BUG #3801: max_fsm_pages postgresql.conf default != guc.c default
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: BUG #3801: max_fsm_pages postgresql.conf default != guc.c default