Add head support to postgresql formulae