"Magnus Hagander" <mha@sollentuna.net> writes:
> That does seem to work, yes. I thought there was some magic reason we
> were using PG_BINARY_W and not "w".. Assuming there isn't, attached
> patch is certainly cleaner.
Looks reasonable to me. Patch applied.
regards, tom lane