bug-11226 fix to postgres