Cursor based records in PostgreSQL
1. Implicit cursor It’s almost always better to use the implicit cursor of a FOR loop than to resort to a somewhat slower and unwieldy explicit cursor. I have written thousands of PL/pgSQL functions and only a hand full of times explicit cursors made any sense. CREATE OR REPLACE FUNCTION avoidable_states() RETURNS SETOF varchar LANGUAGE … Read more