re-adding fix for import error for windows postgres
Merge pull request #10452 from thematthopkins/windows_postgres_import_fix

re-adding fix for import error for windows postgres