fixed bug with loop variables
Merge branch 'interface_extension' of https://github.com/mpws2013n1/postgres into interface_extension