Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ha! plpgsql's seemingly sole purpose is to inject imperative code into a set-based environment. Probably does it more smoothly than most pl languages, but that's at the cost of imperative clarity.

But you're right. Postgres does allow for-loops like this. (They're also slower than the equivalent set-oriented approach.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: