#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-------------------------------------+-------------------------------------
     Reporter:  benjaoming           |                    Owner:  Flavio
                                     |  Curella
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Management     |                  Version:  master
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Dulmandakh):

 Replying to [comment:8 felixxm]:
 > Replying to [comment:7 Dulmandakh]:
 > > .... may be used to set many connection configurations of psycopg2
 other than **options** or PGOPTIONS.
 >
 > I'm not sure what does it mean? You want to pass `options` to the
 `PGOPTIONS` so how it can support sth else? The list of all available
 options can be found in [https://www.postgresql.org/docs/10/runtime-
 config.html the PostgreSQL docs]. Also I'm not sure
 ([https://github.com/django/django/pull/3168#issuecomment-55174417 as
 pointed by Tim]) if passing all possible options is safe.

 IIRC, OPTIONS passed to
 [https://www.psycopg.org/docs/module.html#psycopg2.connect
 psycopg2.connect] method directly as a part of kwargs, so it might be best
 to not interfere with it. Also we cannot determine which options are safe
 or not, so it might be best to leave it a web developer to decide.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23318#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.54da3190191aecb0467328e4e826b12b%40djangoproject.com.

Reply via email to