Randall Smith <randall(at)tnr(dot)cc> writes:
> As a note, using pg_dump with plain text format does not have this
> problem. So is there a bug in the custom format?
Not in general, but feel free to show us a reproducible test case...
regards, tom lane