"Brian Hackett" <bhackett(at)stanford(dot)edu> writes:
> From manual examination of the code, it looks like pg_restore will corrupt
> an internal data structure on certain abnormal inputs.
Yeah, I think you are right. Looks easy to fix though: we already are
building a flag array from the input, so just add a test to ignore any
already-seen ID.
Thanks for the report.
regards, tom lane