Re: pgsql/src/backend/storage/smgr (md.c) - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql/src/backend/storage/smgr (md.c)
Date
Msg-id 4969.963267070@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql/src/backend/storage/smgr (md.c)  (The Hermit Hacker <scrappy@hub.org>)
Responses Re: pgsql/src/backend/storage/smgr (md.c)  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-committers
The Hermit Hacker <scrappy@hub.org> writes:
>> Yes, but it is the cause of the problem that must be fixed.  This only
>> prevents errors from creating too many segments.

> Basically, if I'm understanding the problem from what Tom stated ... how
> can the client side request 'a block past the end of the table'?

It can't.  This patch just prevents md.c from going crazy as a
consequence of a bug elsewhere in the backend that causes higher
levels of the backend to request a garbage block number.

The patch doesn't fix the underlying problem (ie, whatever higher-level
bug might cause this); it just limits the extent of the bad
consequences...

            regards, tom lane

pgsql-committers by date:

Previous
From: Vince Vielhaber
Date:
Subject: [WEBMASTER] 'www/html related.html'
Next
From: The Hermit Hacker
Date:
Subject: Re: pgsql/src/backend/storage/smgr (md.c)