pgsql: reindexdb: Fix the index-level REINDEX with multiple jobs

2025-03-16 Thread Alexander Korotkov
reindexdb: Fix the index-level REINDEX with multiple jobs 47f99a407d introduced a parallel index-level REINDEX. The code was written assuming that running run_reindex_command() with 'async == true' can schedule a number of queries for a connection. That's not true, and the second query sent usin

pgsql: reindexdb: Fix the index-level REINDEX with multiple jobs

2025-03-16 Thread Alexander Korotkov
reindexdb: Fix the index-level REINDEX with multiple jobs 47f99a407d introduced a parallel index-level REINDEX. The code was written assuming that running run_reindex_command() with 'async == true' can schedule a number of queries for a connection. That's not true, and the second query sent usin