I have verified all the possible reasons that I can think of for why this script succeeds on one server but fails on the other. In all these respects the two set ups are absolutely identical: same pg_hba.conf files, same script parameters, same versions of Postgres, same everything.
I have run out of ideas!
How can I troubleshoot this further? Is there some way to have Postgres dump excruciatingly thorough details about every single step of the authentication sequence?
Any other suggestions would be greatly appreciated.
Thanks!
k