mkabilov / logical_backup

[WIP] Continuous backup of the tables using PostgreSQL logical replication
MIT License
9 stars 3 forks source link

bugfixes #33

Closed alexeyklyukin closed 5 years ago

alexeyklyukin commented 5 years ago

Safeguard against effects of dropping a table included in the backup.

Make sure dropped tables are excluded from the backup as soon as we notice they are not present. The right place for this seems to be the locking routine called from RunBasebackup, as base backup is the only place we could interact with those and lock comes as a first SQL command (we need to lock the table even before fething its structure in order to protect against concurrent modifications/deletes).

Also set prometheus port to 1999 when not defined explicitly.