refactoring, first steps for fd checks
Merge branch 'piggyback_master' of https://github.com/mpws2013n1/postgres into piggyback_master