Skip to content

Commit

Permalink
Fixed build for PG <= 13.
Browse files Browse the repository at this point in the history
Problem introduced by commit b34b05f.
  • Loading branch information
Antonin Houska committed Jun 21, 2024
1 parent 7cabc72 commit e0359e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1743,8 +1743,17 @@ cleanup_repl_origins(void)
ereport(DEBUG1,
(errmsg("cleaning up replication origin \"%s\"",
orig_name)));
#if PG_VERSION_NUM >= 140000
/* nowait=true because no one should be using the origin. */
replorigin_drop_by_name(orig_name, false, true);
#else
{
Oid originid;

originid = replorigin_by_name(orig_name, false);
replorigin_drop(originid, true);
}
#endif
}
}
list_free(origs);
Expand Down

0 comments on commit e0359e7

Please sign in to comment.