PostgreSQL UNIX domain sockets vs TCP sockets

前端 未结 5 783
野性不改
野性不改 2020-12-07 11:19

I wonder if the UNIX domain socket connections with postgresql are faster then tcp connections from localhost in high concurrency rate and if it does, by how much?

5条回答
  •  日久生厌
    2020-12-07 11:46

    Postgres core developer Bruce Momjian has blogged about this topic. Momjian states, "Unix-domain socket communication is measurably faster." He measured query network performance showing that the local domain socket was 33% faster than using the TCP/IP stack.

提交回复
热议问题