How to fix function based index that is not working in Greenplum