What will be the Postgres equivalent for the below code from Oracle.
Select instr('abc de fgh',' ', -1) from dual;
returns: 7
Original code: substr(country, instr(country,' ', -1)+1);
I want to create the same logic in Postgres but position & reverse function didn't work