Assuming that if I run a query in my database like this
select coordinate_json from location
It will return coordinate_json column with value like this (example for one row):
"{\"type\": \"Point\", \"coordinates\": [96.25518281124721, 4.335420234501272]}"
The problem is, every time I run this query to convert coordinate_json to geometry column :
select ST_GeomFromGeoJSON(coordinate_json) from location
I will get this error message:
ERROR: function st_geomfromgeojson(json) does not exist
Maybe coordinate_json format, as I wrote above, is not match with GeoJSON format remind that there're backslash, so how can I convert that to Geometry Column?