Some more performance improvements for Postgres
Fixed overflow on Redshift
Bugfix for out of heap when using Redshift