Postgresql Plpgsql Loop Through Array Python Tutorialspoint