Fix lack of GetWALInsertionTimeLine in PG14

This commit is contained in:
Konstantin Knizhnik
2025-05-30 14:26:44 +03:00
parent a5af7d9d63
commit bd3f4f9638

View File

@@ -170,7 +170,11 @@ WalProposerMain(Datum main_arg)
walprop_pg_load_libpqwalreceiver();
wp = WalProposerCreate(&walprop_config, walprop_pg);
#if PG_MAJORVERSION_NUM < 15
wp->localTimeLineID = ThisTimeLineID;
#else
wp->localTimeLineID = GetWALInsertionTimeLine();
#endif
wp->last_reconnect_attempt = walprop_pg_get_current_timestamp(wp);
walprop_pg_init_walsender();