[SR-Dev] git:janakj/postgres: Various changes to get rid of conflicts and make km_ files compile.