From: | "Zeng, David (GE Healthcare)" <david(dot)zeng(at)ge(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Trouble creating extensions: postgis and postgis_topology |
Date: | 2018-03-08 20:11:19 |
Message-ID: | BL6P101MB0180911475DF5AD771F6CE3FF1DF0@BL6P101MB0180.NAMP101.PROD.OUTLOOK.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Appreciate it, David! Disconnect and reconnect works. I don’t have luck with “set search_path”.
Thanks,
______________________________
David Zeng | System Database Administrator
From: David G. Johnston [mailto:david(dot)g(dot)johnston(at)gmail(dot)com]
Sent: Thursday, March 08, 2018 2:45 PM
To: Zeng, David (GE Healthcare) <david(dot)zeng(at)ge(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: EXT: Re: Trouble creating extensions: postgis and postgis_topology
On Thu, Mar 8, 2018 at 12:41 PM, Zeng, David (GE Healthcare) <david(dot)zeng(at)ge(dot)com<mailto:david(dot)zeng(at)ge(dot)com>> wrote:
Hello, my friends, I am configuring PostGIS for the database restore. I ran the following sequence successfully on a brand new database yesterday afternoon:
CREATE SCHEMA postgis;
ALTER DATABASE dz5 SET search_path="$user", public, postgis,topology;
GRANT ALL ON SCHEMA postgis TO public;
CREATE EXTENSION postgis WITH SCHEMA postgis;
CREATE EXTENSION postgis_topology;
However, I got the following error when it get to “CREATE EXTENSION postgis_topology;” step today:
ERROR: type "geometry" does not exist
Any thoughts? Has any one of you experienced this before?
You've altered the database default search_path but haven't actually changed it in the active session. You either need to do "set search_path" or, after the alter database, disconnect and reconnect to the database.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2018-03-08 20:20:38 | Re: Trouble creating extensions: postgis and postgis_topology |
Previous Message | David G. Johnston | 2018-03-08 19:45:23 | Re: Trouble creating extensions: postgis and postgis_topology |