Support for reporting in PostgreSQL