Add support for Postgres 9.0 with a backported error hook

The DefineCustomStringVariable signature changed slightly in 9.1,
taken into account here.