We don't need cursor variables with PostgreSQL, but I'll leave the
way I generated them in place 'cause I'll need that kind of code
for other databases.