Move code to get_tables_to_repack_partitioned
authorÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 20 Jul 2026 10:12:13 +0000 (12:12 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 20 Jul 2026 10:12:13 +0000 (12:12 +0200)
commitad6ae52c49ac07b6ae2f8017b63ebd757b815d8f
tree3b3fa3ba907c9f2ff945722edad86298756bc1c2
parent16ebc196d8926823bc8d64931557b679cecd67aa
Move code to get_tables_to_repack_partitioned

Some of its code was pointlessly in its caller.  This makes it better
contained and clearer.

Backpatch to 19, to avoid having two different copies in case we have to
modify it again later.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: ChangAo Chen <cca5507@qq.com>
Discussion: https://postgr.es/m/alD9l-XlCuu3eUEe@alvherre.pgsql
src/backend/commands/repack.c