Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F013B63309F for ; Tue, 17 Feb 2009 18:55:26 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49784-09 for ; Tue, 17 Feb 2009 18:55:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailsrv1.zmi.at (mailsrv1.zmi.at [212.69.162.198]) by mail.postgresql.org (Postfix) with ESMTP id 9A65A633063 for ; Tue, 17 Feb 2009 18:55:17 -0400 (AST) Received: from webmail.zmi.at (websrv1.zmi.at [212.69.162.199]) by mailsrv1.zmi.at (Postfix) with ESMTP id F3B02406C for ; Tue, 17 Feb 2009 23:55:14 +0100 (CET) Received: from phpmailer ([195.202.170.131]) by webmail.zmi.at with HTTP (PHPMailer); Tue, 17 Feb 2009 23:55:15 +0100 Date: Tue, 17 Feb 2009 23:55:15 +0100 To: pgsql-admin@postgresql.org From: Michael Monnerie Subject: Re: 8.3.5 broken after power fail Message-ID: <43a3a0bccd3684972f33e0051b45f2b4@webmail.zmi.at> X-Priority: 3 X-Mailer: PHPMailer [version 1.71] X-Mailer: FeLaMiMail In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/134 X-Sequence-Number: 31355 News! The server even crashes when accessing certain messageblks: The "physmessage" table contains mails with date, mails are stored in = pieces in "messageblks" (see ER model at http://www.dbmail.org/dokuwiki/doku.php?id=3Der-model ). I try to find = first and last message with a problem, here the last: select substring(m.messageblk,0,5) from dbmail_messageblks m join dbmail_physmessage p on (p.id=3Dm.physmessage_id) where p.id >=3D 1831634; But that crashes the server completely: 2009-02-17 23:48:43 CET pid=3D5481 1/2 idle: LOG: statement: select substring(m.messageblk,0,5) from dbmail_messageblks m join dbmail_physmessage p on (p.id=3Dm.physmessage_id) where p.id >=3D 1831634; 2009-02-17 23:48:44 CET pid=3D5482 /usr/bin/postmaster: LOG: connection received: host=3D[local] 2009-02-17 23:48:44 CET pid=3D5413 : LOG: server process (PID 5481) was terminated by signal 11: Segmentation fault 2009-02-17 23:48:44 CET pid=3D5413 : LOG: terminating any other active server processes 2009-02-17 23:48:44 CET pid=3D5413 : LOG: all server processes = terminated; reinitializing 2009-02-17 23:48:44 CET pid=3D5483 -1/0 : LOG: database system was interrupted; last known up at 2009-02-17 23:48:32 CET 2009-02-17 23:48:44 CET pid=3D5483 -1/0 : LOG: database system was not properly shut down; automatic recovery in progress 2009-02-17 23:48:44 CET pid=3D5483 -1/0 : LOG: record with zero length at E/382481B8 2009-02-17 23:48:44 CET pid=3D5483 -1/0 : LOG: redo is not required 2009-02-17 23:48:44 CET pid=3D5483 -1/0 : LOG: checkpoint starting: = shutdown immediate 2009-02-17 23:48:44 CET pid=3D5483 -1/0 : LOG: checkpoint complete: wrote = 0 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=3D0.003 s, sync=3D0.000 s, total=3D0.013 s 2009-02-17 23:48:44 CET pid=3D5486 -1/0 : LOG: autovacuum launcher = started 2009-02-17 23:48:44 CET pid=3D5413 : LOG: database system is ready to = accept connections Damn, that crash really busted my db. I'd only like to have the rest of = the data from that table... mfg zmi