Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2A3dix65453 for ; Fri, 9 Mar 2001 22:39:45 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f2A3dX913544; Fri, 9 Mar 2001 22:39:33 -0500 (EST) To: Bjorn Halvor Solberg cc: pgsql-interfaces@postgresql.org Subject: Re: Backend dies for DBI In-reply-to: References: <22575.984012545@sss.pgh.pa.us> <24449.984016287@sss.pgh.pa.us> Comments: In-reply-to Bjorn Halvor Solberg message dated "09 Mar 2001 16:29:21 -0800" Date: Fri, 09 Mar 2001 22:39:32 -0500 Message-ID: <13541.984195572@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200103/89 X-Sequence-Number: 1250 Bjorn Halvor Solberg writes: > What confuses me is that it ran fine for a couple of months. Then, after > the power outage, it crashes every few hours, resulting in having to > restart the web server to regain the DB handle. >> Hmm. Possibly some corrupted data in the database now? > That thought did come to mind, but manual queries go through just fine. > I did vacuum the database, but that didn't help. This is reaching a little bit, but something to think about: maybe you are not running exactly the same software or configuration as you were before the power outage. A well known gotcha on machines that stay up for a long time between boots is that you may have changed something without realizing that the effects would disappear at the next boot (or alternatively, only come into effect at the next boot). For example, starting a daemon without remembering to arrange for the boot scripts to start it, or changing a daemon's config file and neglecting to test the results, or installing a new version of some shlib that's used by a daemon. When a reboot does finally happen, you've forgotten that there was anything to worry about, and so the sudden change in behavior is mysterious. I realize this doesn't give anything concrete to go on, but maybe it will give you an idea of where to look. regards, tom lane