Opened 5 years ago

Last modified 5 years ago

#31463 closed New feature

apply OPTIONS in database settings to dbshell — at Initial Version

Reported by: Dulmandakh Owned by: nobody
Component: Database layer (models, ORM) Version: 3.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When I use django.db.backends.postgresql, and set OPTIONS like below, it would apply to psycopg2 connections, but not dbshell.

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql",
        "NAME": "db",
        "HOST": "127.0.0.1",
        "OPTIONS": {"options": "-c default_text_search_config=simple"}
    }
}

Entering below command in dbshell would show pg_catalog.english instead of pg_catalog.simple.

SHOW default_text_search_config;

https://github.com/django/django/pull/12715

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top