pgsql-server/src/interfaces/python pg.py

From: darcy(at)postgresql(dot)org (D'Arcy Cain)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/interfaces/python pg.py
Date: 2002-11-25 01:28:32
Message-ID: 20021125012832.CCC284758E6@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: darcy(at)postgresql(dot)org 02/11/24 20:28:32

Modified files:
src/interfaces/python: pg.py

Log message:
Change the debug variable to allow better control by the caller over how
debug output is managed. The user can continue to use the current method
of passing a formatting string to have a replacement done and output will
be sent to the standard output exactly as it did before. In addition they
can set it to a file object, sys.stderr for example, and the query string
will be printed to it. Thay can also set it to a method (function) and the
query string will be passed to that method giving them the maximum flexibility
to do whatever they want with the query string.

I will be working with the PyGreSQL documentation shortly and at that time
will properly document this feature.

Browse pgsql-committers by date

  From Date Subject
Next Message D'Arcy Cain 2002-11-25 02:15:17 pgsql-server/src/interfaces/python pg.py
Previous Message Tom Lane 2002-11-24 21:52:15 pgsql-server/src backend/nodes/copyfuncs.c bac ...