Make a PostgresResult typedef