logoalt Hacker News

codesniklast Thursday at 10:37 PM1 replyview on HN

unless you're spawning them for new connections.


Replies

jeltzlast Thursday at 10:42 PM

Some, but not that much. Switching PostgreSQL to a threaded model will not magically make spawning connections fast. PostgreSQL connections are quite heavyweight.

The reason to use threads is almost entirely about ease of development, not about performance. If you use shrared memory like PostgreSQL does you need to write your own allocators, etc. So much you get for free if you use threads.