Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cshEw-0005lg-19 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 02:52:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cshEv-0006a1-K5 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 02:52:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cshEs-0006Hl-Fq for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 02:52:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cshEq-0003QU-9b for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 02:52:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2S2prcl008214; Mon, 27 Mar 2017 22:51:53 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , Petr Jelinek , "pgsql-hackers@postgresql.org" , Petr Jelinek , Peter Eisentraut Subject: Re: logical replication launcher crash on buildfarm In-reply-to: References: <20170316032833.2zxfnqe3sl3ktrbt@alap3.anarazel.de> <20170316034246.3uurliezczmka6cn@alap3.anarazel.de> <20170316085322.crffknkgee5s6air@alap3.anarazel.de> <368e64f6-ee9a-f09f-82b4-a33b61b28d36@2ndquadrant.com> <20170327165023.t224nralrspk6udc@alap3.anarazel.de> <52d78669-0523-4e60-a263-841c96210256@2ndquadrant.com> <8941c9b1-f6e9-1056-39f2-7bc7336c4d00@2ndquadrant.com> <20170328020422.i4srzzgq4zbzu2ci@alap3.anarazel.de> Comments: In-reply-to Robert Haas message dated "Mon, 27 Mar 2017 22:46:00 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8212.1490669513.1@sss.pgh.pa.us> Date: Mon, 27 Mar 2017 22:51:53 -0400 Message-ID: <8213.1490669513@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas 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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers