Progress on PostgreSQL compatibility (thanks to Michele Meloni).