Skip site navigation (1) Skip section navigation (2)

Re: [ADMIN] ERROR: could not read block

From: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>,pgsql-hackers(at)postgresql(dot)org, mha(at)sollentuna(dot)net
Subject: Re: [ADMIN] ERROR: could not read block
Date: 2005-12-01 05:09:03
Message-ID: Pine.LNX.4.58.0512010005110.20041@eon.cs (view raw or flat)
Thread:
Lists: pgsql-hackers

On Thu, 1 Dec 2005, Tom Lane wrote:

> Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu> writes:
> > ! 				default:
> > ! 					_dosmaperr(error);
> > ! 					Assert(errno != EINTR);
>
> What's the point of that ... didn't it already happen inside read()?
>

Recall that we have some reports that read() failed to convert some
windows error number to some meaningful errno. For example, the
ERROR_SHARING_VIOLATION error was converted to EINVAL. So we do it
ourselves here and we can get better diagnostic information if this error
is reported again.

Regards,
Qingqing

In response to

pgsql-hackers by date

Next:From: David FetterDate: 2005-12-01 05:15:59
Subject: Re: [HACKERS] Upcoming PG re-releases
Previous:From: Tom LaneDate: 2005-12-01 05:00:34
Subject: Re: [ADMIN] ERROR: could not read block

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group