fixed postgresql bug introduced in recent commit?