Re: Peter Eisentraut 2020-01-11 <f5ff846a-7a98-6110-0776-f7b5c4b3d...@debian.org> > It might be possible to do this if we have systemd organize the file > descriptor passing (using socket activation and all that). It's something > I've been meaning to look into, but it would be a development effort, not > just a packaging change.
That sounds promising; all that would be left to do would be to keep the old instance running while there are still connections to it. > Another option might be to use the SO_REUSEPORT socket option and start a > new pgbouncer instance concurrently with the old one. Then you can shut > down the old one once the new one is up and taking on connections. I don't > know whether that's in scope for packaging, either, though. That would still need systemd allowing to start two instances in parallel. I think implementing something along these lines is a prerequisite for the first solution. Christoph