Question

Using PostGIS extension with PostgreSQL on database cluster

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.