Skip to content

Commit 7bb1f04

Browse files
committed
Always skip pglogical_origin extesion on restore
Helps with cross-version replication.
1 parent b45e2da commit 7bb1f04

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pglogical_sync.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,9 @@ dump_structure(PGLogicalSubscription *sub, const char *destfile,
9898
PG_VERSION_NUM / 100 / 100, PG_VERSION_NUM / 100 % 100);
9999

100100
initStringInfo(&command);
101-
#if PG_VERSION_NUM < 90500
102101
appendStringInfo(&command, "%s --snapshot=\"%s\" -s -N %s -N pglogical_origin -F c -f \"%s\" \"%s\"",
103-
#else
104-
appendStringInfo(&command, "%s --snapshot=\"%s\" -s -N %s -F c -f \"%s\" \"%s\"",
105-
#endif
106-
pg_dump, snapshot, EXTENSION_NAME,
107-
destfile, sub->origin_if->dsn);
102+
pg_dump, snapshot, EXTENSION_NAME, destfile,
103+
sub->origin_if->dsn);
108104

109105
res = system(command.data);
110106
if (res != 0)

0 commit comments

Comments
 (0)