Settings
POSTGRES_EXTRA_DB_BACKEND_BASEDATABASES[db_name]['ENGINE']must be set to"psqlextra.backend". If you’re already using a custom back-end, setPOSTGRES_EXTRA_DB_BACKEND_BASEto your custom back-end. This will instructdjango-postgres-extrato wrap the back-end you specified.A good example of where this might be need is if you are using the PostGIS back-end:
django.contrib.gis.db.backends.postgis.Default value:
django.db.backends.postgresqlWarning
The custom back-end you specify must derive from the standard
django.db.backends.postgresql.
POSTGRES_EXTRA_AUTO_EXTENSION_SET_UPYou can stop
django-postgres-extrafrom automatically trying to enable thehstoreextension on your database. Enabling extensions usingCREATE EXTENSIONrequires superuser permissions. Disable this behaviour if you are not connecting to your database server using a superuser.Default value:
TrueNote
If set to
False, you must ensure that thehstoreextension is enabled on your database manually. If not enabled, anyhstorerelated functionality will not work.
POSTGRES_EXTRA_ANNOTATE_SQLIf set to
True, will append a comment to all SQL queries with the path and line number that the query was made from.Format:
/* <pid> <function name> <filename> <line number> */This can be useful when debugging queries found in PostgreSQL’s
pg_stat_activityor in its query log.