PostgreSQL 9.1 introduces a change in the default value for the « standard_conforming_strings » parameter.
When this parameter is « on » (which is the new default), PostgreSQL will stop accepting the backslash character for escaping single quote in strings.
For now, if you want to use WordPress/PG4WP with any version of PostgreSQL starting with 9.1, you’ll need to set « standard_conforming_strings = off » in your « postgresql.conf » file.
I’ll try to find a solution for the next release of PG4WP so that it works « out of the box » with PostgreSQL 9.1+