You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #1748 introduced the ability to manually pg_dump and automatically pg_restore backups across PostgreSQL major version upgrades.
This seems to work OK, but requires manual intervention that could be avoided by automating through the use of Helm Chart Hooks. See this example in dataone-indexer Issue 202.
Through the use of hooks, it should be possible to do a pg_dump (to provide a temporary backup) at every helm uninstall/upgrade (provided it doesn't take too long - a Values flag can be used to disable).
(Moving the pg_restore operation from its current location (an initContainer in the Metacat pod) to a helm hook would be a "nice to have", for separation of concerns. However, this may not be feasible, since pg_restore requires PostgreSQL to be running - so we'd need ot investigate the chart/hook lifecycle a bit more.)
The text was updated successfully, but these errors were encountered:
artntek
changed the title
Enhancement:
Enhancement: Helm Chart Hooks for PostgreSQL pg_dumpApr 30, 2025
Issue #1748 introduced the ability to manually
pg_dump
and automaticallypg_restore
backups across PostgreSQL major version upgrades.This seems to work OK, but requires manual intervention that could be avoided by automating through the use of Helm Chart Hooks. See this example in dataone-indexer Issue 202.
Through the use of hooks, it should be possible to do a
pg_dump
(to provide a temporary backup) at every helm uninstall/upgrade (provided it doesn't take too long - a Values flag can be used to disable).(Moving the
pg_restore
operation from its current location (aninitContainer
in theMetacat
pod) to a helm hook would be a "nice to have", for separation of concerns. However, this may not be feasible, sincepg_restore
requires PostgreSQL to be running - so we'd need ot investigate the chart/hook lifecycle a bit more.)The text was updated successfully, but these errors were encountered: