| From: | Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com> |
|---|---|
| To: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Antonin Houska <ah(at)cybertec(dot)at>, Sergey Sargsyan <sergey(dot)sargsyan(dot)2001(at)gmail(dot)com>, Hannu Krosing <hannuk(at)google(dot)com> |
| Subject: | Re: Resetting snapshots during the first phase of [CREATE |RE]INDEX CONCURRENTLY |
| Date: | 2026-03-21 23:50:00 |
| Message-ID: | CADzfLwV+EYL0qDorDKEuJbHNaXqnWbZXRZtKcOgG-KuL9+R2-Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello, Álvaro!
Thanks for looking into it.
> Or should we just consider the test as not-for-commit, and only a
> development aid?
Initially I thought so, but looks like it is possible to make it committable.
> The test in 0001 is a bit on the slow side; should we make it
> optional with PG_TEST_EXTRA?
I made *parameters* to be depended on PG_TEST_EXTRA ~= stress. It is
possible to apply the same pattern for other stress tests too.
> The last pgbench subtest mentions GIN in the test name but doesn't
> actually run it. Do we care? Would it be good to make the table be
> unlogged?
Fixed, it has its own pgbench because it has its own gin_index_check.
> Would it be good to make the table be unlogged?
Good idea, done.
> I think all-but-one backends will
>complete all the 999 transactions in the first 10ms sleep that the one
> backend running the CIC does. Am I right about this?
It actually has enough time to do multiple CIC (I see it from the
log). I updated the test to random delay, for non-stress variants -
from 0 to 1, for stress - up to 10.
Also, fixed a few small styling issues + added additional fixes for
waiting for a snapshot to be restored by a parallel worker.
Best regards,
Mikhail.
| Attachment | Content-Type | Size |
|---|---|---|
| v4-0002-Reset-snapshots-periodically-in-non-unique-non-pa.patch | application/octet-stream | 51.1 KB |
| v4-0001-Add-stress-tests-for-concurrent-index-builds.patch | application/octet-stream | 11.9 KB |
| v4-0004-Support-snapshot-resets-in-concurrent-builds-of-u.patch | application/octet-stream | 40.9 KB |
| v4-0003-Support-snapshot-resets-in-parallel-concurrent-in.patch | application/octet-stream | 41.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bharath Rupireddy | 2026-03-22 00:08:56 | Re: another autovacuum scheduling thread |
| Previous Message | Gyan Sreejith | 2026-03-21 23:09:05 | Re: [Proposal] Adding Log File Capability to pg_createsubscriber |