set enable_seqscan to off; set enable_indexscan to off; SELECT count(1) from test_hash where num in (4291541512512155513, 4294967296, 0);