Fix file deletion command in recovery_1st_stage.sample.
authorTaiki Koshino <koshino@sraoss.co.jp>
Wed, 10 Sep 2025 04:33:23 +0000 (13:33 +0900)
committerTaiki Koshino <koshino@sraoss.co.jp>
Wed, 10 Sep 2025 04:33:23 +0000 (13:33 +0900)
commiteaa9bdf1f25436f7f6f675c01135c2625cf09f1b
treefe411323161caebe3e172a8377a58cf015bc892d
parent5a157f772dc645f6c65db384543a63ff3304e3b5
Fix  file deletion command in recovery_1st_stage.sample.

In the recovery_1st_stage script, the file deletion command has been modified.
Previously, files under ARCHIVEDIR were deleted using "rm *", but when the total size of the target files exceeded ARG_MAX, it resulted in an "Argument list too long" error and caused the recovery_1st_stage script to fail.
By switching to the find command to delete files one by one, this error is avoided.

Discussion: https://github.com/pgpool/pgpool2/issues/94
Backpatch-through: v4.2
src/sample/scripts/recovery_1st_stage.sample