Re: Corrupt database? 8.1/FreeBSD6.0 - Mailing list pgsql-general

From Jeff Amiel
Subject Re: Corrupt database? 8.1/FreeBSD6.0
Date
Msg-id 758295.45906.qm@web60818.mail.yahoo.com
Whole thread Raw
In response to Re: Corrupt database? 8.1/FreeBSD6.0  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Corrupt database? 8.1/FreeBSD6.0
Next
From: "Jim C. Nasby"
Date:
Subject: Re: [HACKERS] Checkpoint request failed on version 8.2.1.