Revert "postgresql fixed" - found a new postgresql issue

This reverts commit b264fb972c1453893d353de202c7532a2d8e9712.