\set id random(0,1)
select * from p where a = :id

