Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coiV2-0002si-Ev for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:24:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1coiV1-00025b-2R for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Mar 2017 03:24:19 +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 1coiUy-0001y5-Ra for pgsql-hackers@postgresql.org; Fri, 17 Mar 2017 03:24:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1coiUr-0001an-Ck for pgsql-hackers@postgresql.org; Fri, 17 Mar 2017 03:24:15 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7188020AC3; Thu, 16 Mar 2017 23:24:08 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 16 Mar 2017 23:24:08 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=nFkPiB+70gfR6MTnvjJn/9Ws31A=; b=oEkPJwHW/be9Ds8zTVEyNIZO v3AQR6Z3KIWTxJE8LbgzyVx5i2A0QCbbPYf7ucrurHSIbJ1DsGIQrYw+4FjkQL51 uqaPNTe7UW/X5ZfqBVPhq0HZB/Et0ZSOY4lxwVdLYLprHgvR2egi2B7CmLW19VOb MC9Wo+gh9p/FT4fmXo6DIX9scoDEyhfkvufYG+zzHEPx2JLVP4ZQi3GyYSoBcuJP 9Y57FHeBB41GkF+hym8uKkiGXJAmrow2CWG6xLlQRMZb8tY7idb5+IaDY7LkiKby xT+6CA9NgTXz3pkzH+kB5mqZkuQlzoAXhfbSUdM2a9qQoiBrvuqdZGoxwIZhhg== X-ME-Sender: X-Sasl-enc: lpMypT9yibBukQ7/UzV6VuKY0UgAziR/2j0+4dTJFIHB 1489721048 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 2744E7E270; Thu, 16 Mar 2017 23:24:08 -0400 (EDT) Subject: Re: logical replication launcher crash on buildfarm To: Andres Freund , Robert Haas References: <20170316032833.2zxfnqe3sl3ktrbt@alap3.anarazel.de> <20170316034246.3uurliezczmka6cn@alap3.anarazel.de> <20170316085322.crffknkgee5s6air@alap3.anarazel.de> <368e64f6-ee9a-f09f-82b4-a33b61b28d36@2ndquadrant.com> <20170316185505.mtztedkngd34z4i4@alap3.anarazel.de> Cc: Petr Jelinek , "pgsql-hackers@postgresql.org" , Petr Jelinek From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4d126046-3eee-b87c-b0e4-9506dae249db@2ndquadrant.com> Date: Thu, 16 Mar 2017 23:24:07 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170316185505.mtztedkngd34z4i4@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 3/16/17 14:55, Andres Freund wrote: > I indeed think that's the right consequence. One question is what to > replace it with exactly - are we guaranteed we can dynamically lookup > symbols by name in the main binary on every platform? I think there is probably a way to do this on all platforms. But it seems that at least the Windows port of pg_dlopen would need to be updated to support this. > Alternatively we > can just hardcode a bunch of bgw_function_name values that are matched > to specific functions if bgw_library_name is NULL - I suspect that'd be > the easiest / least worrysome portability-wise. Basically a variant of fmgrtab, which addresses the same sort of problem. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers