Revert "fixing closure serialization failures in postgre tests"

This reverts commit b789080db391207cd4490ce81614e38df440cbba.