rearrange postgres costs a little