Re: Corrupt database? 8.1/FreeBSD6.0

Поиск
Список
Период
Сортировка
От Jeff Amiel
Тема Re: Corrupt database? 8.1/FreeBSD6.0
Дата
Msg-id 758295.45906.qm@web60818.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Corrupt database? 8.1/FreeBSD6.0  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general


Tom Lane <tgl@sss.pgh.pa.us> wrote:

Really? Wow, *that's* an interesting thought. Is it likely that that
temp table could contain many-hour-old data?

Certainly...our connection pool used by jboss can have connections to postgres persisting for multiple days.  (We're still looking for a way to tell it to recycle these occasionally).  As each 'user' of our web based app performs some action, they acquire one of the connection pool connections and set their user_id in the temporary table used by that connection (we use that for our audit triggers)  Once they are 'done' with the connection, the connection is just released back to the pool but not actually closed...so the temp table still contains the  data from a previous iteration.


TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Corrupt database? 8.1/FreeBSD6.0
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: [HACKERS] Checkpoint request failed on version 8.2.1.