Mercurial > libervia-pubsub
diff sat_pubsub/tap.py @ 276:b757c29b20d7
import changes from idavoll changeset 233 (24be3a11ddbc), by Ralph Meijer and based on a patch by Nuno Santos
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 13 Oct 2014 15:59:25 +0200 |
parents | d55620ceafed |
children | 8a71486c3e95 |
line wrap: on
line diff
--- a/sat_pubsub/tap.py Thu Aug 01 16:22:14 2013 -0700 +++ b/sat_pubsub/tap.py Mon Oct 13 15:59:25 2014 +0200 @@ -101,6 +101,7 @@ if config['backend'] == 'pgsql': from twisted.enterprise import adbapi from sat_pubsub.pgsql_storage import Storage + from psycopg2.extras import NamedTupleConnection dbpool = adbapi.ConnectionPool('psycopg2', user=config['dbuser'], password=config['dbpass'], @@ -109,6 +110,7 @@ port=config['dbport'], cp_reconnect=True, client_encoding='utf-8', + connection_factory=NamedTupleConnection, ) st = Storage(dbpool) elif config['backend'] == 'memory':