aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-03-25 02:07:14 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2024-03-25 02:07:15 +0200
commit47f99a407de224df6f9c43697d0a9c0a5598b250 (patch)
treef8c524662bba6bb4b5428a08ff4f04e0ec0f5909 /contrib/postgres_fdw/sql/postgres_fdw.sql
parent503c0ad976f5e4ada2d1b47ae05aa7133351b645 (diff)
downloadpostgresql-47f99a407de224df6f9c43697d0a9c0a5598b250.tar.gz
postgresql-47f99a407de224df6f9c43697d0a9c0a5598b250.zip
reindexdb: Add the index-level REINDEX with multiple jobs
Straight-forward index-level REINDEX is not supported with multiple jobs as we cannot control the concurrent processing of multiple indexes depending on the same relation. Instead, we dedicate the whole table to certain reindex job. Thus, if indexes in the lists belong to different tables, that gives us a fair level of parallelism. This commit teaches get_parallel_object_list() to fetch table names for indexes in the case of index-level REINDEX. The same tables are grouped together in the output order, and the list of indexes is also rebuilt to match that order. Later during processingof that list, we push indexes belonging to the same table into the same job. Discussion: https://postgr.es/m/CACG%3DezZU_VwDi-1PN8RUSE6mcYG%2BYx1NH_rJO4%2BKe-mKqLp%3DNw%40mail.gmail.com Author: Maxim Orlov, Svetlana Derevyanko, Alexander Korotkov Reviewed-by: Michael Paquier
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions