Fix for bcadef37f8d7 for PostgreSQL

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