Re: logical replication launcher crash on buildfarm - Mailing list pgsql-hackers

From Tom Lane
Subject Re: logical replication launcher crash on buildfarm
Date
Msg-id 8213.1490669513@sss.pgh.pa.us
Whole thread Raw
In response to [HACKERS] logical replication launcher crash on buildfarm  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I wasn't thinking of introducing bgw_builtin_id.  My idea was just
> along the lines of

> if (bgw_library_name == NULL && bgw_function_name != NULL)
> {
>     if (strcmp(bgw_function_name, "ParallelQueryMain") == 0)
>        ParallelQueryMain(blah);
>     else if (strcmp(bgw_function_name, "LogicalReplicationMain") == 0)
>        LogicalReplicationMain(blah);
> }

> I think something like that is certainly better for the back-branches,
> because it doesn't cause an ABI break.  But I think it would also be
> fine for master.

That seems perfectly reasonable from here: surely the cost of a couple
of strcmp's is trivial in comparison to a process launch.

We can redesign the API whenever this way starts getting unwieldy,
but that's likely to be quite some time away.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: standardized backwards incompatibility tag for commits
Next
From: Robert Haas
Date:
Subject: Re: O(1) DSM handle operations