Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
> The culprit is f2dec34e19d3969ddd6.
Hmm. I bet problem is that the buf isn't being freed in
printtup_shutdown.
> Also, it doesn't depend on bytea, it
> leaks for text as well.
Yeah, I'd expected that it wasn't particularly bytea's fault.
regards, tom lane