Skip to content

Commit

Permalink
fix: update teardown to drop 'pgbelt' replication setl
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeeva authored Feb 2, 2024
1 parent 65f21c6 commit ff62d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgbelt/util/pglogical.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ async def teardown_replication_set(pool: Pool, logger: Logger) -> None:
async with pool.acquire() as conn:
async with conn.transaction():
try:
await conn.execute("SELECT pglogical.drop_replication_set('default');")
logger.debug("Replication set 'default' dropped")
await conn.execute("SELECT pglogical.drop_replication_set('pgbelt');")
logger.debug("Replication set 'pgbelt' dropped")
except (
InvalidSchemaNameError,
UndefinedFunctionError,
Expand Down

0 comments on commit ff62d57

Please sign in to comment.