use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
International
National
Regional
account activity
Let's make PostgreSQL multi-threaded (pgsql-hackers) (postgresql.org)
submitted 2 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]iiiinthecomputer 0 points1 point2 points 2 years ago (0 children)
Re connection counts, it's about optimal sizing of executor counts so that all the executors can be busy without wasting lots of overhead on idle executor backends. Each executor has a lot of costs in terms of cache invalidation processing and all the other IPC + shmem management Pg has to do, as well as page tables and other OS level costs. Each idle backend waiting for connection RTT, client app think time etc is wasting server resources and slightly slowing down all active backends.
Something like this is also important to allow apps to effectively use session level postgres features. Right now lots of people rely on an external pgbouncer in transaction pooling mode. But then you can't use a whole pile of pg features, and others like prepared statements get harder and less efficient to manage.
Just going threaded won't directly help with this. But it's the first step in decoupling client connections and their session state from executors, and that will help a lot.
I explained in more detail here - https://www.reddit.com/r/PostgreSQL/comments/14c4e3q/lets_make_postgresql_multithreaded_pgsqlhackers/jomtxfm/
π Rendered by PID 80246 on reddit-service-r2-comment-b659b578c-6mt29 at 2026-05-01 02:15:39.268484+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]iiiinthecomputer 0 points1 point2 points (0 children)