"Bryan Henderson" <bryanh(at)giraffe-data(dot)com> writes:
> The two usernames are reversed in the error message "provided username (foo)
> and authenticated username (bar) don't match".
Hm, yeah, I think you're right. This message is new in 8.4, which
explains why it wasn't noticed long ago.
regards, tom lane