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

From Jelte Fennema
Subject Re: [EXTERNAL] Re: Support load balancing in libpq
Date
Msg-id CAGECzQQawkKn3K1aYWPQbieD+RHaJCm7ciWe1afk8o=Hda2mrQ@mail.gmail.com
Whole thread Raw
In response to Re: [EXTERNAL] Re: Support load balancing in libpq  (Jelte Fennema <postgres@jeltef.nl>)
Responses Re: [EXTERNAL] Re: Support load balancing in libpq  ("Gregory Stark (as CFM)" <stark.cfm@gmail.com>)
List pgsql-hackers
Small update. Improved some wording in the docs.

On Fri, 3 Mar 2023 at 15:37, Jelte Fennema <postgres@jeltef.nl> wrote:
>
> > I want to note that the Fisher-Yates algorithm is implemented in a
> > difficult to understand manner.
> > +if (j < i) /* avoid fetching undefined data if j=i */
> > This stuff does not make sense in case of shuffling arrays inplace. It
> > is important only for making a new copy of an array and only in
> > languages that cannot access uninitialized values. I'd suggest just
> > removing this line (in both cases).
>
> Done. Also added another patch to remove the same check from another
> place in the codebase where it is unnecessary.

Attachment

pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Inaccurate comment for pg_get_partkeydef
Next
From: Bharath Rupireddy
Date:
Subject: Re: Add pg_walinspect function with block info columns