Fixed underflow error in postgres
Merge pull request #1419 from gem/fix-underflow-error

Fixed underflow error in postgres