tvondra / pg_check

a tool to verify integrity of PostgreSQL data files
BSD 3-Clause "New" or "Revised" License
48 stars 17 forks source link

Fix skipping index tuples with no data. #2

Closed zwily closed 12 years ago

zwily commented 12 years ago

The previous code was only skipping a tuple with no data if the page was leftmost. That was too restrictive. Any non-leaf page might have an empty tuple in the first data key location (1 or 2, depending on whether the page is rightmost), so that check is expanded a bit.