Re: [EXTERNAL] Re: Support load balancing in libpq - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: [EXTERNAL] Re: Support load balancing in libpq
Date
Msg-id CAAWbhmhXX9ysp-C2AEstE1ODybnzr4YRkwUYP9smMaeGq9y25g@mail.gmail.com
Whole thread Raw
In response to Re: [EXTERNAL] Re: Support load balancing in libpq  (Jacob Champion <jchampion@timescale.com>)
Responses Re: [EXTERNAL] Re: Support load balancing in libpq
List pgsql-hackers
On Fri, Jan 13, 2023 at 10:44 AM Jacob Champion <jchampion@timescale.com> wrote:
> And my thought was that the one-time
> initialization could be moved to a place that doesn't need to know the
> connection options at all, to make it easier to reason about the
> architecture. Say, next to the WSAStartup machinery.

(And after marinating on this over the weekend, it occurred to me that
keeping the per-connection option while making the PRNG global
introduces an additional hazard, because two concurrent connections
can now fight over the seed value.)

--Jacob



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [PATCH] Add native windows on arm64 support
Next
From: Peter Geoghegan
Date:
Subject: Re: Decoupling antiwraparound autovacuum from special rules around auto cancellation