nbtree backwards scan test coverage - Mailing list pgsql-hackers

From Peter Geoghegan
Subject nbtree backwards scan test coverage
Date
Msg-id CAH2-WzmD+jUBOpFS2jrnqqrdPSAjoxqyL9FPKaE1BtnY=8Nntg@mail.gmail.com
Whole thread
Responses Re: nbtree backwards scan test coverage
List pgsql-hackers
Attached patches add an isolation test to the nbtree test module,
which uses injection points. This provides thorough test coverage for
nbtree backwards scans, including cases where we must recover from
concurrent page splits, and page deletions by VACUUM.

The tests assume a default BLCKSZ of 8KiB. It would be difficult and
likely not worth it to get the tests passing under any alternative
BLCKSZ. We certainly rely on that assumption elsewhere to achieve the
expected test coverage. However, this specific test goes further: it
visibly fails on a non-default BLCKSZ. I think that that's probably
okay, but I wanted to flag it.

-- 
Peter Geoghegan

Attachment

pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: CREATE SUBSCRIPTION ... SERVER vs. pg_dump, etc.
Next
From: Peter Geoghegan
Date:
Subject: nbtree _bt_set_startikey row compare test coverage