#11285: postgresql server version as a static variable
---------------------------+------------------------------------------------
 Reporter:  findepi        |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 In {{{django.db.backends.postgresql.base}}} and
 {{{django.db.backends.postgresql_psycopg2.base}}} modules there is a code:

 {{{
 #!python
 cursor = self.connection.cursor()
 if set_tz:
     cursor.execute("SET TIME ZONE %s", [settings_dict['TIME_ZONE']])
     if not hasattr(self, '_version'):
         self.__class__._version = get_version(cursor)
     if self._version[0:2] < (8, 0):
 }}}

 It means that the server version is checked only at the first connection.
 I understand that django does not support and maybe will never support
 multiple different db connections from one process, but this may brake
 things even in case of database failover
 E.g. at one network address there may be postgresql servers of different
 version available.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11285>
Django <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to