Re: bt_index_parent_check and concurrently build indexes

Mihail Nikalayeu <michail.nikolaev@gmail.com>

From: Michail Nikolaev <michail.nikolaev@gmail.com>
To: "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-12-15T18:43:24Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. amcheck: Fix snapshot usage in bt_index_parent_check

  2. Teach contrib/amcheck to check the unique constraint violation

Attachments

Hello, Andrey!

Thanks for the review!

> I think usually write only commit year. Something tells me you can safely
write 2025 there.
Done.

> Can't wrap my head why do you need this?
Oops, copy-paste, fixed.

> I think this comment describes behavior before the fix in present tense.
Fixed.

> Snapshot business seems incorrect to me here...
Hm, it seems like it is correct. `snapshot` variable is deleted, we only
use `state->snapshot` now (if it is required at all).

Best regards,
Mikhail.