--- postgres_backend.py.orig	2009-02-12 22:17:42.000000000 +0100
+++ postgres_backend.py	2009-02-12 22:11:20.000000000 +0100
@@ -145,6 +145,7 @@
             if 'schema' in params:
                 self.schema = params['schema']
                 cnx.cursor().execute('SET search_path TO %s', (self.schema,))
+		cnx.commit();
         except PGSchemaError:
             cnx.rollback()
         ConnectionWrapper.__init__(self, cnx)
@@ -173,5 +174,6 @@
         if self.schema:
             try:
                 self.cnx.cursor().execute("SET search_path TO %s", (self.schema,))
+		self.cnx.commit();
             except PGSchemaError:
                 self.cnx.rollback()

