Re: off-by-one in pg_repack index loop
John Naylor <johncnaylorls@gmail.com>
From: John Naylor <johncnaylorls@gmail.com>
To: Lakshmi N <lakshmin.jhs@gmail.com>
Cc: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-29T07:16:08Z
Lists: pgsql-hackers
On Tue, Apr 14, 2026 at 2:35 PM Lakshmi N <lakshmin.jhs@gmail.com> wrote: > if (unlikely(list_length(ind_oids_new) < pos)) > elog(ERROR, "list of new indexes too short"); > ident_idx_new = list_nth_oid(ind_oids_new, pos); > break; If we're going to change this, let's also get rid of the "unlikely", since it's just a noise word here -- see commit 913ec71d6. -- John Naylor Amazon Web Services
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix off-by-one in repack index loop
- b5f92b8eb439 19 (unreleased) landed
-
Improve compiler code layout in elog/ereport ERROR calls
- 913ec71d682e 14.0 cited