Skip to content

Commit b55c951

Browse files
authored
Dont alter publication during schema sync (#572)
1 parent 2b1d3b9 commit b55c951

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pgdog/src/backend/schema/sync/pg_dump.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,15 @@ impl PgDumpOutput {
436436
}
437437
}
438438

439+
NodeEnum::AlterOwnerStmt(stmt) => {
440+
if stmt.object_type() != ObjectType::ObjectPublication {
441+
result.push(Statement::Other {
442+
sql: original.to_string(),
443+
idempotent: true,
444+
});
445+
}
446+
}
447+
439448
NodeEnum::CreateEnumStmt(_)
440449
| NodeEnum::CreateDomainStmt(_)
441450
| NodeEnum::CompositeTypeStmt(_) => {

0 commit comments

Comments
 (0)