Report this

What is the reason for this report?

Using PostGIS extension with PostgreSQL on database cluster

Posted on April 4, 2020

Hello

I’m planning to move one of my PostgreSQL database from DO droplet to database cluster.

On the droplet I’m using PostGIS extension together with PostgreSQL. Moving to database cluster, what is alternative to install and use PostGIS as extension of PostgreSQL on the node.

Thanks,

Viet Anh



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If you haven’t figured it out yet…

https://www.digitalocean.com/docs/databases/postgresql/resources/supported-extensions/

There really are 2 ways to do this.

  1. Connect to your droplet using psql and then use the CREATE EXTENSION…Command

OR

  1. Install PgAdmin4 (locally) , connect your cluster, expand your db, right click on “Extensions”, click “CREATE” and then “Extension” (or something like that) and the dialog that comes up has a ton of extensions to choose from in the drop down. Be sure to look at all the tabs and all the drop downs to ensure you are getting what you expect (e.g. there may be more than 1 version of postgis available…

Hope this helps.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.