Re: BUG #2113: PostgreSQL hangs after running for 2 days

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Wojciech Sobczuk" <wojtek(at)brandlay(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2113: PostgreSQL hangs after running for 2 days
Date: 2005-12-15 06:25:55
Message-ID: 10450.1134627955@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Wojciech Sobczuk" <wojtek(at)brandlay(dot)com> writes:
> I have a 16GB database which is very busy (100 requests per second). After
> running for some time (sometimes 2 days sometimes longer sometimes shorter)
> postgres hangs. Last time it happened I got the following error in the
> log:

> ERROR: could not access status of transaction 0
> DETAIL: could not create file "/opt/pgdata/pg_subtrans/6E75": File
> exists
> STATEMENT: SET DATESTYLE TO 'ISO'
> WARNING: StartTransaction while in START state

Hmmm ... it seems just possible that this is related to a recent fix:

2005-11-02 19:23 tgl

* src/backend/access/transam/slru.c (REL8_0_STABLE): Fix
longstanding race condition in transaction log management: there
was a very narrow window in which SimpleLruReadPage or
SimpleLruWritePage could think that I/O was needed when it wasn't
(and indeed the buffer had already been assigned to another page).
This would result in an Assert failure if Asserts were enabled, and
probably in silent data corruption if not. Reported independently
by Jim Nasby and Robert Creager.

Would you update to 8.0.5 and let us know if you still see the failure?

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Adam Kolany 2005-12-15 11:03:55 BUG #2117: inconsistency in sum
Previous Message Qingqing Zhou 2005-12-15 04:14:49 Re: BUG #2113: PostgreSQL hangs after running for 2 days