Fix regression in postgres module.

Closes #9372
Merge pull request #9380 from cachedout/#9372

Fix regression in postgres module.