"Zac Hillier" <zac(at)affectors(dot)net> writes:> Is it possible to write sql functions with a foreach style loop?
SQL functions don't have any control structures. Consider plpgsql,pltcl, or plpython instead.
regards, tom lane