Tom Lane wrote:
> Mark Mielke <mark@mark.mielke.cc> writes:
>> Postfix has this capability and it works fine.
>
> Hmm, have we looked at the Postfix code to see exactly how they do it?
> I'd be a *lot* more comfortable adopting logic that's been proven in the
> field than something written from scratch.
Good idea.
As far as I know postfix doesn't support win32. They use a similar
approach with using ioctls on some systems, getifaddrs on others.
I can take a look at the postfix code (src/util/inet_addr_local.c),
check out licenses, add win32 support and adapt it to postgres uses.
Cheers,
Stef