Hello, we found issue here
Ubuntu 24.04.1 LTS
PG 17.5 (Ubuntu 17.5-1.pgdg24.04+1)
pg_repack 1.5.2
Whenever we try to repack an index that does not exist, the repack exit code is 0.
pg_repack -U username -h localhost --index='public.my_index_not_exist' --wait-timeout=3600 dbname
WARNING: ERROR: relation "public.my_index_not_exist" does not exist
CONTEXT: unnamed portal parameter $1 = '...'
echo $?
0