X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 75B4EDB965 for ; Thu, 17 Nov 2005 10:09:50 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 41239-09 for ; Thu, 17 Nov 2005 14:09:53 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 595E7DB969 for ; Thu, 17 Nov 2005 10:09:47 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 423AB31059; Thu, 17 Nov 2005 15:09:51 +0100 (MET) From: "Qingqing Zhou" X-Newsgroups: pgsql.hackers Subject: Re: [ADMIN] ERROR: could not read block Date: Thu, 17 Nov 2005 09:10:08 -0500 Organization: Hub.Org Networking Services Lines: 27 Message-ID: References: <6BCB9D8A16AC4241919521715F4D8BCE6C7BF4@algol.sollentuna.se> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original To: pgsql-hackers@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/900 X-Sequence-Number: 76182 ""Magnus Hagander"" wrote > > Seems like we could just retry when we get this failure. The question is > we need to do a small amount of sleep before we do? Also, we can't just > retry forever, there has to be some kind of end to it... > (If you read the SQL kb, it can be read as retrying is the correct > thing, because the bug in sql was that it didn't retry) > Agree on the retry solution. Yes, two important factors are: intervals, times. I suspect if it is a dedicated server, serveral retry can handle it. But for a server might running backup together, who knows how long we need. But in either way, I don't think an endless loop is needed -- at most 3 minutes (since s_lock() does this :-)). Also, this is a partial solution to the "invalid parameter" win32 IO problem. There are some other cases like ACESS_VIOLATION error need more evidence to pin down. Regards, Qingqing P.s. Go to be out of town for several days ...