Introduce pgsql_query resource.