Tackle Postgres incompatibility with recent MW versions

Fixes #221