Dave Roberts dvrbts at
Tue Jan 14 02:07:51 CET 2003

Does anyone know how to shift postgres into html table mode from inside

>From inside postgres it's simple:  \pset format html

However, all my attempts to pass postgres that string from inside
PyGreSQL seem to get trapped by the interpreter.  I'm trying to use
python cgi scripts to present queries, and since the output is going to
stdout (the browser), if I could just kick postgres into html it would
be self-presenting.

Thanks, Dave R. 
David W. Roberts                                  office: 435-797-2416
Interim Head                                         FAX: 435-797-3796
Department of Forest, Range, and              email: dvrbts at
   Wildlife Sciences                URL:
Utah State University
Logan, UT 84322-5230

More information about the Python-list mailing list