postgresql/contrib/amcheck
Tom Lane eb5c404b17 Minor code-cleanliness improvements for btree.
Make the btree page-flags test macros (P_ISLEAF and friends) return clean
boolean values, rather than values that might not fit in a bool.  Use them
in a few places that were randomly referencing the flag bits directly.

In passing, change access/nbtree/'s only direct use of BUFFER_LOCK_SHARE to
BT_READ.  (Some think we should go the other way, but as long as we have
BT_READ/BT_WRITE, let's use them consistently.)

Masahiko Sawada, reviewed by Doug Doole

Discussion: https://postgr.es/m/CAD21AoBmWPeN=WBB5Jvyz_Nt3rmW1ebUyAnk3ZbJP3RMXALJog@mail.gmail.com
2017-09-18 16:36:28 -04:00
..
expected amcheck: Harden tests against concurrent autovacuums. 2017-03-14 13:07:38 -07:00
sql amcheck: Harden tests against concurrent autovacuums. 2017-03-14 13:07:38 -07:00
.gitignore Add .gitignore to contrib/amcheck. 2017-03-09 22:45:24 -05:00
Makefile Add amcheck extension to contrib. 2017-03-09 16:33:02 -08:00
amcheck--1.0.sql Add amcheck extension to contrib. 2017-03-09 16:33:02 -08:00
amcheck.control Add amcheck extension to contrib. 2017-03-09 16:33:02 -08:00
verify_nbtree.c Minor code-cleanliness improvements for btree. 2017-09-18 16:36:28 -04:00