Using PostGIS extension with PostgreSQL on database cluster

Posted April 4, 2020 2.9k views


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.


Viet Anh

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.

Submit an Answer
1 answer

If you haven’t figured it out yet....

There really are 2 ways to do this.

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


2) 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.