postgresql/src/bin
Alexander Korotkov 09ef2f8df1 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 using run_reindex_command() will wait for the completion of the previous
one.

This commit fixes that by putting REINDEX commands for the same table into a
single query.

Also, this commit removes the 'async' argument from run_reindex_command(),
as only its call always passes 'async == true'.

Reported-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/202503071820.j25zn3lo4hvn%40alvherre.pgsql
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Backpatch-through: 17
2025-03-16 13:29:20 +02:00
..
initdb Translation updates 2025-02-17 17:51:30 +01:00
pg_amcheck pg_amcheck: Fix inconsistency in memory freeing 2025-02-27 14:05:55 +09:00
pg_archivecleanup Translation updates 2025-02-17 17:51:30 +01:00
pg_basebackup Translation updates 2025-02-17 17:51:30 +01:00
pg_checksums Translation updates 2025-02-17 17:51:30 +01:00
pg_combinebackup Translation updates 2025-02-17 17:51:30 +01:00
pg_config Translation updates 2025-02-17 17:51:30 +01:00
pg_controldata Translation updates 2025-02-17 17:51:30 +01:00
pg_ctl Translation updates 2025-02-17 17:51:30 +01:00
pg_dump Fix pg_dumpall to cope with dangling OIDs in pg_auth_members. 2025-02-21 13:37:15 -05:00
pg_resetwal Translation updates 2025-02-17 17:51:30 +01:00
pg_rewind Translation updates 2025-02-17 17:51:30 +01:00
pg_test_fsync Translation updates 2025-02-17 17:51:30 +01:00
pg_test_timing Translation updates 2025-02-17 17:51:30 +01:00
pg_upgrade pg_upgrade: Fix inconsistency in memory freeing 2025-02-28 10:15:32 +09:00
pg_verifybackup Translation updates 2025-02-17 17:51:30 +01:00
pg_waldump Translation updates 2025-02-17 17:51:30 +01:00
pg_walsummary Translation updates 2025-02-10 15:00:55 +01:00
pgbench Fix pgbench performance issue induced by commit af35fe501. 2025-02-07 13:41:42 -05:00
pgevent meson: Build pgevent as shared_module rather than shared_library 2024-11-26 18:09:14 +01:00
psql Translation updates 2025-02-17 17:51:30 +01:00
scripts reindexdb: Fix the index-level REINDEX with multiple jobs 2025-03-16 13:29:20 +02:00
Makefile Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00
meson.build Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00