Andreas Pflug <pgadmin@pse-consulting.de> writes:
> The attached code snippet works. I hesitated to use palloc(count*2) to
> avoid problems in low mem conditions; might be paranoid.
No, I quite agree. What we can do is adjust this to call
write_syslogger_file_binary more than once if the convbuf gets full;
then we can use a pretty small convbuf without fear.
Will fix and commit --- thanks!
regards, tom lane