Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu95Z-00031p-Au for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Apr 2017 02:48:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cu95Y-0005hv-C7 for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Apr 2017 02:48:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cu93v-0002m6-I2 for pgsql-hackers@postgresql.org; Sat, 01 Apr 2017 02:46:47 +0000 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cu93q-00068A-HK for pgsql-hackers@postgresql.org; Sat, 01 Apr 2017 02:46:45 +0000 Received: by mail-wr0-x22d.google.com with SMTP id l43so119070060wre.1 for ; Fri, 31 Mar 2017 19:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=EHHDdE6HjvDt78XER0SbCgdaUKYswtdhB7EasLHYIuU=; b=HXVBeXxFN5IFI4dEj998nEsZsCnzrKLxEGXNij388JAxbx/0otonZu7o/dDab8f4y9 AhD8qC8t09NaC0g7P/oOXmPkL6MrruTyyji5IgnbwgK/aJl56AY3xDuN23C/k+B3pd7G XhpVPWzhDewWZUbEMb5XfI9Hjdt+EU7r1k3mzdRpDu1vQZbcjgehH4HZYzFYyXVFW4Nr jy372i7H86g+MbRHByThdh3Dj0u6J3XpW2MTAIh0zI7IfQB6ENw2x36ovuWcwIeZOvq9 ty5cXz4hZvEaEgXQYy4JiUU9Mt/boPw1KNSoM/3XPKuVT97IQp/9M3ZV3fCRHzlr7b2R 4RXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=EHHDdE6HjvDt78XER0SbCgdaUKYswtdhB7EasLHYIuU=; b=HAxJeDkJP3boXuwdonxEWrY13WZ6sAC716fEFzAgubHEsbZTM4ZC4ZuB8P5QoNGNzr TDivonUU8784oi+zMjfBvCkn0Wy7f3OiKQDhu1c1Bolc+kMReVzpixsN7BwrmH2MiRjf GlQkbi0+0wQq+Kef50hGQUCvDO9z+vzNnrSGK/L61bM5QTifKk6hoO+FFPfCdi2/OWlg WSxEIqwkZGIKDcu+iLjYHaTc4P8wyjPeg3dEGo8irhV9oz4NPwUSi8F5w7MFSRiC8lnk 013eFGdoM3Lubc+kkJVHRjF5EL1SS4GkUmcI6vSSZWzQ2xsMZh9gimgkoTczpTEFALdj Tu1Q== X-Gm-Message-State: AFeK/H164ykM0hZzE6xPtWY27Q81+cpr5NrfZWSDJJlWk5bD4RIvwgE9QEw2ahd2mfwV6xJL X-Received: by 10.223.167.145 with SMTP id j17mr446865wrc.178.1491014801327; Fri, 31 Mar 2017 19:46:41 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id r124sm5039823wmf.11.2017.03.31.19.46.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2017 19:46:40 -0700 (PDT) Subject: Re: logical replication launcher crash on buildfarm To: Andres Freund , Robert Haas References: <0471e978-b121-ad2f-2879-f1694d9a5ce7@2ndquadrant.com> <2124fb62-2393-8525-4fe9-b95b1b689d09@2ndquadrant.com> <09d8ad33-4287-a09b-a77f-77f8761adb5e@2ndquadrant.com> <8ebd3aa3-55eb-1106-7c10-7e7579f94582@2ndquadrant.com> <20170401021928.47zjjryhty5kdzqz@alap3.anarazel.de> Cc: "pgsql-hackers@postgresql.org" , Petr Jelinek , Peter Eisentraut From: Petr Jelinek Message-ID: <59710cc4-0adf-e21b-cba6-1488c632e5b4@2ndquadrant.com> Date: Sat, 1 Apr 2017 04:46:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170401021928.47zjjryhty5kdzqz@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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 On 01/04/17 04:19, Andres Freund wrote: > On 2017-03-31 21:30:17 -0400, Robert Haas wrote: >> On Fri, Mar 31, 2017 at 9:26 PM, Petr Jelinek >> wrote: >>>> Hmm, I don't know if there's any good reason not to just use strcmp(), >>>> but sure, OK. Committed and back-patched. >>> >>> Hmm culicidae still fails, this time only in parallel worker code. This >>> didn't happen on my machine which is strange. Looking at the code, we >>> are passing the fps->entrypoint as function pointer again so of course >>> it fails. We have some code to load libraries again but even that gets >>> initial entrypoint passed as function pointer >>> (ParallelExtensionTrampoline). I wonder if we'll have to generalize the >>> InternalBGWorkers even more to some kind of internal function name to >>> pointer map and add the parallel entry points there as well. >> >> Argh, I forgot about that. I think we need to use something like >> ParallelExtensionTrampoline all the time, not just for libraries. >> Since effectively, we've determined that postgres itself has the same >> problem. > > I wonder if we shouldn't just introduce a KnownFunctionPointer[] map, > that can be used by various facilities (bgworkers themselves, > parallelism, and probably more coming). Otherwise we'll introduce > mechanisms like 7d8f6986b8 in multiple places. > Yes that's what I meant with what I said above. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, 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