Autodesk / pgbelt

Pgbelt is a CLI tool used to manage Postgres data migrations from beginning to end, for a single database or a fleet, leveraging pglogical replication.
Apache License 2.0
18 stars 5 forks source link

`sync` fails when a database has no sequences. #515

Closed vjeeva closed 2 months ago

vjeeva commented 2 months ago

Describe the bug If a source DB does not have any sequences, when running sync it bombs out.

Excerpt

AttributeError: 'NoneType' object has no attribute 'decode'

Seems pgbelt.utils.postgres.py load_sequences always tries to run even with an empty dict. Need to not fail on that.