"Douglas, Ryan" <RDouglas(at)arbinet(dot)com> writes:
> Any tips on using gdb to step through the code?
If you set pre_auth_delay to 30s or so in postgresql.conf, it'll
slow things down enough so that you can get the backend's PID from
"ps" and then attach to it with gdb. Then set a breakpoint at
pam_passwd_conv_proc, continue, and away you go.
You'll definitely want a debug-enabled postgres executable, though,
which you did not seem to have before.
regards, tom lane