PostgreSQL interface for issue #143