Re:Measuring the Memory Overhead of a Postgres Connection
by anarazel on Monday October 12, 2020 @10:57PM
(#24761806)
That doesn't actually address the "overhead of an idle connection" bit meaningfully:
https://techcommunity.microsoft.com/t5/azure-database-for-po...
Unfortunately there are some kernel tuneables (buffer sizes) which you have to set at compile time to support massive data transfers on sockets.
Obviously this only works if you are on the same machine and if you connect directly to Postgres this way, it will happily spawn a process for every query :(.