Am Donnerstag, 13. Juli 2017 10:32:26 UTC+2 schrieb Antonis Christofides:
>
> BTW,
>
> another idea for "connecting" to PostgreSQL as different users would be to 
> actually have Django connect to PostgreSQL as a superuser and then 
> (probably in some early middleware) execute SET SESSION AUTHORIZATION to 
> switch permissions. This is probably easier and more robust and it's easier 
> to reuse connections.
>
> Regards,
>
> Antonis
>

Yes, this should work. Thank you for this hint. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d7e7713d-cddb-4610-931a-fef6e36c2213%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to