I figured out how to make the 003_peer.pl tests for \1 lesshacky, and pushed that. Here's a proposed patch for thedocumentation side of things, including your suggestion tomake pg_ident.conf.sample match up better.
regards, tom lane