Earlier quoted context omitted.
It improved quite a lot! It scales pretty well to thousands of connections: https://techcommunity.microsoft.com/blog/adforpostgresql/imp... . However, if pooling isn’t used, there’s always an overhead (tens of milliseconds or more) when creating a new connection because Postgres needs to fork a process. And yes, applications can be written without pooling, which isn’t ideal, but happens quite a lot. Application frame…
In other words, it's still super heavy if it's forking a process per connection. I find it ridiculous that PgBouncer even needs to exist. Postgres should be doing this.
We scaled PgBouncer to 4x throughput
51–60 of 67 posts
Re: We scaled PgBouncer to 4x throughput
#52Earlier quoted context omitted.
nginx was built by one person. I'm talking about a russian corporation that has (inescapable) ties to kremlin
If open source code can have political beliefs then the only reasonable solution is to live as a hermit. I can guarantee that there is software on your computer written by communists, nazis, mormons, every single political ideology is represented by lines of code that you run every day, because open source doesn't require any political vetting to contribute.
Re: We scaled PgBouncer to 4x throughput
#53Earlier quoted context omitted.
[flagged]
except for perhaps… a scalable pg bouncer? And good nuclear reactors [1]? Not to say I support many Russian political moves, but I think discrediting an entire people and their outputs on Russian politics is brusque - particularly open source ones. [1]: https://www.abc.net.au/news/2026-05-08/russia-nuclear-power-...
Re: We scaled PgBouncer to 4x throughput
#54Earlier quoted context omitted.
Objectively speaking, Russia is one of the most creative and innovative societies of all time. Literature, science, music, sporting, mathematics, computing, you name it, a Russian has innovated in it.
What would be some of these innovations and contributions in the last 20 years?
Re: We scaled PgBouncer to 4x throughput
#55Earlier quoted context omitted.
Objectively speaking, Russia is one of the most creative and innovative societies of all time. Literature, science, music, sporting, mathematics, computing, you name it, a Russian has innovated in it.
What would be some of these innovations and contributions in the last 20 years?
Edit: just read what ties ClickHouse has, nevermind.
Re: We scaled PgBouncer to 4x throughput
#56Re: We scaled PgBouncer to 4x throughput
#57Earlier quoted context omitted.
Objectively speaking, Russia is one of the most creative and innovative societies of all time. Literature, science, music, sporting, mathematics, computing, you name it, a Russian has innovated in it.
What would be some of these innovations and contributions in the last 20 years?
Re: We scaled PgBouncer to 4x throughput
#58> The cancel lands on a process that has never heard of the query, and nothing happens. > Peering fixes this. The processes are aware of one another, so a cancel that lands on the wrong process is forwarded to the one that actually owns the session. I understand "peering" as a concept here but have never tried this with PostgreSQL before. May I ask: A) Does PostgreSQL have a mode/setting for peering that makes this e…
you encode information in the token, this was a motivation for postgres to remove 32 byte cap on tokens: https://www.postgresql.org/message-id/508d0505-8b7a-4864-a68... See from slide 26 https://www.pgevents.ca/events/pgconfdev2024/sessions/sessio... Jelte's a pgbouncer maintainer, video of a talk on this by him: https://www.youtube.com/watch?v=X-nCHcZ6vQU
Re: We scaled PgBouncer to 4x throughput
#59is this for microservice scenarios where you gate access to the psql server through a connection pool thing? because if there is monolithic backend this is not needed. most decent backend frameworks have built-in connection pooling. that covers 98% of use cases for which microservices are not needed, nor recommended.
But if your backend app is a shared nothing fork of many processes then this is surely needed.
Re: We scaled PgBouncer to 4x throughput
#60Earlier quoted context omitted.
In other words, it's still super heavy if it's forking a process per connection. I find it ridiculous that PgBouncer even needs to exist. Postgres should be doing this.
Why Postgres should be doing this? Not every client creates a lot of connections and spinning up PgBouncer is easy. On the other hand, debugging async multithreaded complex code is hard.
I hope they do develop a native, threaded pooling, even if it were incompatible with some libraries or extensions.