Repository navigation
Commit 1342d5b
authored
fix(snapshot-restore): bump machinery to v0.4.0 for pgsql_tmp* directory removal (#10447)
Upgrade cloudnative-pg/machinery from v0.3.3 to v0.4.0 which uses
os.RemoveAll instead of os.Remove in RemoveFiles, fixing snapshot
restore failures when non-empty pgsql_tmp* directories exist in PGDATA.
Extensions loaded via `shared_preload_libraries` (e.g. vchord) can
create directories like `pgsql_tmp_vchord_sampling/` in PGDATA during
recovery, and the standard PostgreSQL `pgsql_tmp/` directory may also
contain temporary files. These are ephemeral runtime artifacts that
should be removed unconditionally during restore cleanup.
Closes #10398
Signed-off-by: Marco Nenciarini <[email protected]>1 parent cd77e4b commit 1342d5b
2 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
| 315 | + | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
0 commit comments