the plpgsql documentation about cursors. Per a suggestion from Matthew Wakeling.
Attach a file by drag & drop or click to upload