From: Ben L. <pyp...@zu...> - 2003-04-30 18:37:52
|
The pgUnquoteBytea function in libpq is rather slow (it uses scanf). Noticing that the pyPgSQL version was much faster I lifted the code and put it into libpq. Do you mind if I submit the change to the libpq developer with full acknowledgement that the code came from pyPgSQL? Thanks, Ben Lamb. BTW Unescaping a 200Kb JPEG stored in a PostgreSQL bytea field took 1.5 mins before and 0.09 seconds afterwards on a 2Ghz machine! |