pg_upgrade: Parallelize retrieving loadable libraries.
authorNathan Bossart <[email protected]>
Mon, 16 Sep 2024 21:10:33 +0000 (16:10 -0500)
committerNathan Bossart <[email protected]>
Mon, 16 Sep 2024 21:10:33 +0000 (16:10 -0500)
commit46cad8b31927410a99894279ca9af4e0d5c185b6
tree49b59834dc31fa06df8a4b4316d4f30cc29efa03
parent7baa36de58bdaeb4797d592aeb9ef1db08320853
pg_upgrade: Parallelize retrieving loadable libraries.

This commit makes use of the new task framework in pg_upgrade to
parallelize retrieving the names of all libraries referenced by
non-built-in C functions.  This step will now process multiple
databases concurrently when pg_upgrade's --jobs option is provided
a value greater than 1.

Reviewed-by: Daniel Gustafsson, Ilya Gladyshev
Discussion: https://postgr.es/m/20240516211638.GA1688936%40nathanxps13
src/bin/pg_upgrade/function.c