I am migrating Oracle PL/SQL Procedures to Postgres PGPLSQL ...
In my Oracle Procedure I had like this..

for rec in Cursor1 loop
UPDATE trnsctn_mstr set clmd_flag='P' WHERE CURRENT OF C1;
end loop;

How can I convert this Code to PGplsql .
Is there any For loop feature in pgplsql ? or not?

Please clarify my Doubt ? and Solution to the above problem.