This project is archived and is in readonly mode.
Still issuing a SHOW
-
Daniele Varrazzo
- State changed from new to invalid
psycopg 2.4.6 issues
SHOW default_transaction_isolationonly when asked forconn.isolation_level. If the property is not read the query is not performed.$ PSYCOPG_DEBUG=1 ipython Python 2.7.3 (default, Aug 1 2012, 05:16:07) In [1]: import psycopg2 [334] initpsycopg: initializing psycopg 2.5 (dt dec mx pq3 ext) [...snip] In [2]: cnn = psycopg2.connect('') [334] psyco_connect: dsn = '', async = 0 [334] connection_setup: init connection object at 0xb6b79f5c, async 0, refcnt = 1 [334] con_connect: connecting in SYNC mode [334] conn_connect: new postgresql connection at 0x9c16bb8 [334] conn_connect: server standard_conforming_strings parameter: on [334] conn_connect: server requires E'' quotes: NO [334] conn_connect: using protocol 3 [334] conn_connect: client encoding: UTF8 [334] clear_encoding_name: UTF8 -> UTF8 [334] conn_connect: DateStyle ISO, DMY [334] connection_setup: good connection object at 0xb6b79f5c, refcnt = 1 In [3]: cnn.isolation_level [334] pq_get_guc_locked: reading default_transaction_isolation [334] pq_get_guc_locked: pgconn = 0x9c16bb8, query = SHOW default_transaction_isolation Out[3]: 1 -
Nathen Hinson
Hi Daniele,
Thank-you for the speedy investigation and for the clarification on behavior. In the future I will vet any "issues" through the mailing list prior to submitting them here.
Sincerely,
Nathen Hinson