rafaelma / pgbackman

PostgreSQL backup manager

Home Page:https://e-mc2.net/projects/pgbackman/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems when deleting a backup definition by dbname

rafaelma opened this issue · comments

The command delete_backup_definition_dbname will fail if we have a snapshot definition for the same pgsql_node:dbname with data in the backup catalog (table:backup_catalog).

The error message will be:

 ----------------------------------------------
 EXCEPTION:
 ----------------------------------------------
 MESSAGE: null value in column "def_id" violates not-null constraint 
 .........

The deletion of a backup definition should not delete snapshots data from the backup catalog.