If PostGIS was installed on to a schema that is not on the search_path
(e.g., in postgis
), either the functions need to be provided in full (e.g., postgis.st_geomfromtext(...)
) or the search_path
needs to be updated. This can be done per session:
SET search_path = postgis, public;
To permanently alter the search_path
for a database:
ALTER DATABASE my_database SET search_path = postgis, public;
Or for a user:
ALTER USER postgres SET search_path = postgis, public;