The error Error: type "geometry" does not exist
is sometimes encountered whilst working with Postgres databases.
You can easily fix this by following the following steps:
-
Update your database search path.
ALTER DATABASE <your database name> SET search_path=public,postgis;
N.B: Ensure you replace
<your database name>
in the query above with your actual database name. -
Disconnect and reconnect to your database, as you the change above will not take effect in the same session.
-
Install required extensions.
CREATE EXTENSION fuzzystrmatch; CREATE EXTENSION postgis_tiger_geocoder;