Postgres loop through rows. Jun 17, 2022 · No need for PL/pgSQL or a loop.