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

From Tatsuo Ishii
Subject Re: [EXTERNAL] Support load balancing in libpq
Date
Msg-id 20230328.163618.2070165746316966097.t-ishii@sranhm.sra.co.jp
Whole thread Raw
In response to Re: [EXTERNAL] Support load balancing in libpq  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
>> "unlikely" macro is used in libpq_prng_init() in the patch. I wonder
>> if the place is really 'hot' to use "unlikely" macro.
> 
> I don't think it is, I was thinking to rewrite as the below sketch:
> 
> {
>     if (pg_prng_strong_seed(&conn->prng_state)))
>         return;
> 
>     /* fallback seeding */
> }

+1.

Best reagards,
--
Tatsuo Ishii
SRA OSS LLC
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp



pgsql-hackers by date:

Previous
From: Jelte Fennema
Date:
Subject: Re: [EXTERNAL] Support load balancing in libpq
Next
From: Tatsuo Ishii
Date:
Subject: Re: [EXTERNAL] Support load balancing in libpq