How to adding Postgis to the running Postgresql container - postgresql

How to adding Postgis to the running Postgresql Docker Container. I can't delete postgresql. Because it has data and tables. I want to integrate Postgis'i without deleting tables and data. How can I do that?
psql --version ;
psql (PostgreSQL) 13.2 (Debian 13.2-1.pgdg100+1)

Related

How can I migrate aws postgres 9.5 to postgres 12.7?

I am using Amazon Web Services RDS Postgres 9.5.
It is quite old and I want to know how should I upgrade to Postgres 12.7 ?
Is there a way to back it up in Postgres 9.5 and restore it to Postgres 12.7 ?
(Can this be done within AWS itself ?)
Thanks.

Difference between the similar databases at Postgres 9.1 and Postgres 9.3

I have a database at Postgres 9.1 which is well optimised (indexes). When I make dump from it and restore it to another server with Postgres 9.3, it works very slow. What is the difference between these versions? Should I disable any features in Postgres 9.3?

How to migrate data from non-bdr pgsql to bdr pgsql

I have fusionpbx with simple pgsql working ... Now i have created HA fusionpbx with bdr pgsql and it is working fine but I don't know how to migrate data from non-bdr pgsql to bdr pgsql ...
pg_dump worked for me.
pg_dump $non_bdr_db > db.sql
psql $bdr_db < db.sql
Although if you have some fancy extensions (in my case it's PostGIS) you might want to restore the database from the backup first (separately on each and every node of your BDR cluster) and then enable the BDR extension.

How can I upgrade to postgres 9.5 from 9.3.4?

I am new to postgres. I am using postgres 9.3.4. How can I upgrade to postgres 9.5 without losing my data? Please help me.
See the Fine Manual.
Essentially, you can either dump with pg_dumpall (use pg_dumpall from 9.5!) and restore with psql, or you can use pg_upgrade for an in-place upgrade (after you have made a backup).

Installation error while trying to install a gis application using geodjango?

django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS version for database "geodatabase". GeoDjango requires at least PostGIS version 1.3. Was the database created from a spatial database template?
This is the error I got when I followed this tutorial http://invisibleroads.com/tutorials/geodjango-googlemaps-build.html
I got this error when I didn't properly use the POSTGIS template to create my database (exactly like the error suggests). So did you properly install PostGIS with the spatial database template and did you create your db with -T template_postgis ?
createdb -U postgres -T template_postgis -O geouser geodatabase