#34200: Allow setting postgres role during connection setup
-------------------------------------+-------------------------------------
     Reporter:  Mike Crute           |                    Owner:  Mike
                                     |  Crute
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  4.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mike Crute):

 Replying to [comment:8 Mariusz Felisiak]:
 > Is it not possible to set `ROLE` in the same way?

 Unfortunately this does not work for roles, the
 [[https://www.postgresql.org/docs/8.0/runtime-config.html|postgres docs]]
 list all of the parameters supported for this configuration method and
 roles are not one of them. I'm pretty certain the only way to assume a
 role is to issue a `SET ROLE` statement on the connection.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34200#comment:10>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070184e6447403-19da0431-e8bf-45d6-9c7f-59749f9946f4-000000%40eu-central-1.amazonses.com.

Reply via email to