#6710: DATABASE_OPTIONS ignored for postgresql_psycopg2
------------------------+---------------------------------------------------
Reporter: rcoup | Owner: nobody
Status: new | Component: Database wrapper
Version: SVN | Resolution:
Keywords: postgres | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------+---------------------------------------------------
Changes (by rcoup):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Link to the
[http://initd.org/tracker/psycopg/browser/psycopg2/branches/2_0_x/psycopg/psycopgmodule.c
relevant code in psycopg2].
Testing for `sslmode` is actually quite nasty:
1. in `postgresql.conf` set:
* `log_min_messages=debug5`
* `log_min_error_statement=debug5`
1. reload PG
1. set `DATABASE_OPTIONS['sslmode']` to one of the
[http://www.postgresql.org/docs/8.2/static/libpq-connect.html sslmode
settings].
1. look in your PG log for the absence/presence of a line like:
{{{
2008-03-02 15:23:49 NZDT 850 DEBUG: SSL connection from "(anonymous)"
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/6710#comment:1>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---