#32292: Allow postgresql database connections to use postgres services
-------------------------------------+-------------------------------------
     Reporter:  levihb               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  3.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  database postgresql  |             Triage Stage:  Accepted
  postgres service pg_service        |
  config                             |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * stage:  Unreviewed => Accepted


Comment:

 Configuration without `NAME` already works for me, e.g.:
 {{{
 'default': {
     'ENGINE': 'django.db.backends.postgresql',
     'OPTIONS': {
         'service': 'default_django_test'
     }
 },
 }}}
 so only setting `PGSERVICE` for
 
[https://github.com/django/django/blob/2a76f4313423a3b91caade4fce71790630ef9152/django/db/backends/postgresql/client.py#L10-L44
 the underlying command-line client] and docs are missing.

 > I don't mind creating a pull request for it, but would like to know why
 it hasn't been added, ...

 Because you're the first to suggest it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32292#comment:4>
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/064.8cf4db3dd87ac1e6305ed42b54f07e37%40djangoproject.com.

Reply via email to