Bruce Momjian <pgman@candle.pha.pa.us> writes: > Yep, I am digging through snprintf.c now to try find a solution.
The cleanest solution is probably to fix things so that dopr_outch is aware of whether it's working for sprintf or fprintf, and can dump the buffer directly to the file when it gets full in the fprintf case. Its existing API would need to be changed a bit ... maybe pass it a struct containing what it needs, instead of having all the layers of code know what to pass. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match