PostgreSQL - Advanced PL/pgSQL
You want to process a large table
orders row by row using a cursor in a PL/pgSQL function. Which sequence of commands correctly opens the cursor, fetches all rows one by one, and closes it after processing?