Here's a patch that does what has been discussed on Hackers to allow a
default setting in pg_hba.conf for loopback addresses, and should cause
no problems no matter what style of ipv6 is or isn't configured.
If it's wanted I'll document it, if not I won't :-)
BTW, I notice that the sample doesn't seem to contain anything about
hostnossl lines.
cheers
andrew