I am not sure it worth reporting but it took me a while to find out what is wrong with comparing two values returned from the bitncmp function. It does not return -1, 1 or 0 as it is written on the comment when n % 8 == 0.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных