Robert Haas <robertmhaas@gmail.com> writes:
> Why isn't the current behavior - i.e. failing with a permissions error
> - correct? I mean I realize it's wrong in the sense that you can't
> restore a dump you just took, but what about from a security
> perspective?
From the security perspective it may be just fine. Nonetheless,
we need to un-break pg_dump; it's not optional for that to work.
regards, tom lane