fix postgres

introduced by #332