Skip to content

Use current DB owner during restore

Latest
Compare
Choose a tag to compare
@dalenewby dalenewby released this 20 Aug 18:25
9ed8e80

Changes

  • Constrain Python version to 3.12.3. s3cmd version 2.4.0 with Python 3.12.4 on Alpine 3.20 fails with an AttributeError.
  • Find and use the current database owner when dropping the database during a restore operation. PostgreSQL requires the user executing a DROP DATABASE statement to be the database owner. PostgreSQL databases are initially owned by the user postgres before the ownership is set to the DB user. Restoring data to a brand new database requires a different user than restoring to an existing database.