Re: [EXTERNAL] Support load balancing in libpq

Tatsuo Ishii <ishii@sraoss.co.jp>

From: Tatsuo Ishii <ishii@sraoss.co.jp>
To: postgres@jeltef.nl
Cc: daniel@yesql.se, ishii@sraoss.co.jp, stark.cfm@gmail.com, amborodin86@gmail.com, jchampion@timescale.com, orlovmg@gmail.com, Jelte.Fennema@microsoft.com, mbanck@gmx.net, aleksander@timescale.com, pgsql-hackers@postgresql.org, andres@anarazel.de
Date: 2023-03-28T07:37:07Z
Lists: pgsql-hackers
> I think it's fine to remove it. It originated from postmaster.c, where
> I copied the original implementation of libpq_prng_init from.

I agree to remove unlikely macro here.

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



Commits

  1. Fix pointer cast for seed calculation on 32-bit systems

  2. Copy and store addrinfo in libpq-owned private memory

  3. libpq: Use modern socket flags, if available.