The function checks strings for being of data type NUMERIC.
SELECT is_numeric('123') AS res;
Result:
SELECT is_numeric('1 2') AS res; -- Result is false