Re: check database integrity - Mailing list pgsql-general

From Torsten Förtsch
Subject Re: check database integrity
Date
Msg-id 53CF1D5C.8080200@gmx.net
Whole thread Raw
In response to Re: check database integrity  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: check database integrity  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 22/07/14 16:58, Tom Lane wrote:
> Doh.  I looked right at this code in get_raw_page yesterday:
>
>     if (blkno >= RelationGetNumberOfBlocks(rel))
>         elog(ERROR, "block number %u is out of range for relation \"%s\"",
>              blkno, RelationGetRelationName(rel));
>
> RelationGetNumberOfBlocks reports the length of the main fork ... but
> this check is applied regardless of which fork we're reading.  Should
> be using RelationGetNumberOfBlocksInFork, of course.

Thanks for fixing it. I saw your GIT commit.

Do you know how long it takes for the change to make it into a new pgdg
debian package?

Thanks,
Torsten


pgsql-general by date:

Previous
From: Ramesh T
Date:
Subject: Fwd: Need r_constraint_name
Next
From: Bill Moran
Date:
Subject: Re: question about memory usage