Creating extensions v3
After installing PostGIS, create a PostGIS database and the extensions in each database where you want to use PostGIS extensions. Don't create the extensions in the postgres or edb database.
Before creating the postgis database, we recommend creating a superuser to administer the database. To create the user, navigate to the bin directory under your EDB Postgres Advanced Server installation and connect to the server with the psql client:
Invoke the following command to create a privileged role:
Log out of psql and connect as gisadmin:
Invoke the following command to create the postgis database owned by gisadmin:
Use the
\c
command to switch to the postgis database, and use theCREATE EXTENSION
command to create the PostGIS extensions: