Oliver Fromme <olli(at)lurza(dot)secnetix(dot)de> writes:
> The only solution would be to use TCP sockets on localhost,
> but the TCP/IP overhead is considerably higher, especially
> when there are lots of small queries (which I expect).
> I've foiund several benchmarks in various mailinglists,
> some mention a factor of 10.
Really? A decently designed TCP stack should have enough shortcuts
for local traffic to be competitive with Unix sockets. Have you
measured a significant performance problem for yourself?
regards, tom lane