Fix for bcadef37f8d7 for PostgreSQL

Authored by Yaron_Koren on Apr 16 2018, 3:02 AM.