Renz
bdbd8d5e54
feat: Implement ownership preservation in cluster restore
- Add superuser privilege detection (checkSuperuser)
- Implement clean slate restore (DROP DATABASE before restore)
- Add connection termination before DROP (prevents errors)
- Create restorePostgreSQLDumpWithOwnership for configurable ownership
- Fix Unix socket support (skip -h localhost for peer auth)
- Restore global objects (roles/tablespaces) BEFORE databases
- Preserve table/view/function ownership when superuser
- Add comprehensive logging and error handling
- Update restore workflow with ETA tracking
- Add OWNERSHIP_RESTORATION.md documentation
Fixes: Database ownership and privileges not preserved during restore
Tested: ownership_test database with custom owner restored correctly
2025-11-10 08:48:56 +00:00
..
2025-11-07 14:43:34 +00:00
2025-11-07 13:28:11 +00:00
2025-11-07 14:43:34 +00:00
2025-10-22 19:27:38 +00:00
2025-11-07 14:43:34 +00:00
2025-11-07 11:47:07 +00:00
2025-11-07 13:46:55 +00:00
2025-11-10 08:48:56 +00:00
2025-11-05 12:10:06 +00:00
2025-11-07 13:28:11 +00:00