pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Trouble creating extensions: postgis and postgis_topology
4+ messages / 2 participants
[nested] [flat]

* Trouble creating extensions: postgis and postgis_topology
@ 2018-03-08 19:41  Zeng, David (GE Healthcare) <david.zeng@ge.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Zeng, David (GE Healthcare) @ 2018-03-08 19:41 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

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?
______________________________
David Zeng | System Database Administrator


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Trouble creating extensions: postgis and postgis_topology
@ 2018-03-08 19:45  David G. Johnston <david.g.johnston@gmail.com>
  parent: Zeng, David (GE Healthcare) <david.zeng@ge.com>
  0 siblings, 1 reply; 4+ messages in thread

From: David G. Johnston @ 2018-03-08 19:45 UTC (permalink / raw)
  To: Zeng, David (GE Healthcare) <david.zeng@ge.com>; +Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

On Thu, Mar 8, 2018 at 12:41 PM, Zeng, David (GE Healthcare) <
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.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Trouble creating extensions: postgis and postgis_topology
@ 2018-03-08 20:11  Zeng, David (GE Healthcare) <david.zeng@ge.com>
  parent: David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Zeng, David (GE Healthcare) @ 2018-03-08 20:11 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

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.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Trouble creating extensions: postgis and postgis_topology
@ 2018-03-08 20:20  David G. Johnston <david.g.johnston@gmail.com>
  parent: Zeng, David (GE Healthcare) <david.zeng@ge.com>
  0 siblings, 0 replies; 4+ messages in thread

From: David G. Johnston @ 2018-03-08 20:20 UTC (permalink / raw)
  To: Zeng, David (GE Healthcare) <david.zeng@ge.com>; +Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

On Thu, Mar 8, 2018 at 1:11 PM, Zeng, David (GE Healthcare) <
david.zeng@ge.com> wrote:

> Appreciate it, David! Disconnect and reconnect works. I don’t have luck
> with “set search_path”.
>

​I didn't provide the entire, correct, statement hoping you would know what
I meant - how to use the "SET" command.

See:

​https://www.postgresql.org/docs/10/static/sql-set.html

and

https://www.postgresql.org/docs/10/static/config-setting.html#CONFIG-SETTING-SQL-COMMAND-INTERACTION

David J.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-03-08 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-08 19:41 Trouble creating extensions: postgis and postgis_topology Zeng, David (GE Healthcare) <david.zeng@ge.com>
2018-03-08 19:45 ` David G. Johnston <david.g.johnston@gmail.com>
2018-03-08 20:11   ` Zeng, David (GE Healthcare) <david.zeng@ge.com>
2018-03-08 20:20     ` David G. Johnston <david.g.johnston@gmail.com>

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