python - ip: Set GTX as a builtin instead of filling it in as a local.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - ip: Set GTX as a builtin instead of filling it in as a local.
Date: 2006-08-07 06:36:18
Message-ID: 20060807063618.AC4BA86C65E@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Set GTX as a builtin instead of filling it in as a local.

While it would be preferrable not to touch the builtins module, having GTX
there seems most appropriate. Having it as it was before makes '-m module' less
useful as access to the connection is hidden by the module layer. Having it
available through an import statement seems unnatural as it is a single
connection object, not a module.

Also, add the -X option for wrapping the entire run in a transaction block.
Whether xact or subxact being implementation dependent.

Modified Files:
--------------
ip/src:
python.py (r1.2 -> r1.3)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/ip/src/python.py.diff?r1=1.2&r2=1.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2006-08-07 13:17:02 pgsql: Joachim fixed some bugs in numeric handling in pgtypeslib.
Previous Message James William Pye 2006-08-07 06:29:12 python - fe: Close connection on fatal errors.