[SR-Dev] git:janakj/postgres: Fixed startup crash -- applied slightly modified patch from