Temporary postgres fix