From: Zeng, David (GE Healthcare) <david.zeng@ge.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Trouble creating extensions: postgis and postgis_topology
Date: Thu, 8 Mar 2018 20:11:19 +0000
Message-ID: <BL6P101MB0180911475DF5AD771F6CE3FF1DF0@BL6P101MB0180.NAMP101.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAKFQuwbWpd1DXA_YY3zXRKGKKLL1ZTi9MHDQ15zJ8ufVBwVJEA@mail.gmail.com>
References: <BL6P101MB018002D183E039DCC96299CCF1DF0@BL6P101MB0180.NAMP101.PROD.OUTLOOK.COM>
<CAKFQuwbWpd1DXA_YY3zXRKGKKLL1ZTi9MHDQ15zJ8ufVBwVJEA@mail.gmail.com>
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.g.johnston@gmail.com]
Sent: Thursday, March 08, 2018 2:45 PM
To: Zeng, David (GE Healthcare) <david.zeng@ge.com>
Cc: pgsql-admin@lists.postgresql.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.zeng@ge.com<mailto:david.zeng@ge.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: david.zeng@ge.com, david.g.johnston@gmail.com
Subject: Re: Trouble creating extensions: postgis and postgis_topology
In-Reply-To: <BL6P101MB0180911475DF5AD771F6CE3FF1DF0@BL6P101MB0180.NAMP101.PROD.OUTLOOK.COM>
References: <BL6P101MB018002D183E039DCC96299CCF1DF0@BL6P101MB0180.NAMP101.PROD.OUTLOOK.COM> <CAKFQuwbWpd1DXA_YY3zXRKGKKLL1ZTi9MHDQ15zJ8ufVBwVJEA@mail.gmail.com> <BL6P101MB0180911475DF5AD771F6CE3FF1DF0@BL6P101MB0180.NAMP101.PROD.OUTLOOK.COM>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox