Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu7nu-0006w6-4j for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Apr 2017 01:26: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 1cu7nt-0001eQ-KW for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Apr 2017 01:26:09 +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 1cu7ns-0001dG-FE for pgsql-hackers@postgresql.org; Sat, 01 Apr 2017 01:26:08 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cu7nq-0004Xn-4v for pgsql-hackers@postgresql.org; Sat, 01 Apr 2017 01:26:07 +0000 Received: by mail-wm0-x229.google.com with SMTP id t189so10867941wmt.1 for ; Fri, 31 Mar 2017 18:26:05 -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=jp2SYsKePDqvSFE+piQQv1Ztg7CqZtPfZxFYX3YID7I=; b=qstj2mS45r6wTK4gZCzaju39pQsgw9nSnZM4I4e3SLNKzKhPjsFr8USXFhIE4SWkGe BuD+W1zEFRIzeSGTkyDY/zhuGT+irYcj79SYKngYFVxLy8bNOs9KqN/v6spsieXlC6Qt zDG+WiYbtv2RIIJQI57PoggWqbtFSHXdVIhR7xic53ua9Kz5sjBUNHbvjzrweB22pxGS wR9LZN2KMCC5y+Q3mic5NWExiEuJSkCJCTund38kpIH3gBafbHaDdm4kb0pvq8ZcTTNU Oe6WqxQLFTiPYbqQ8k19UNnd1vDJo7bUDIFJZIhDdkwhdk031VHbmDShHh5/5DiWg+FH 4bRw== 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=jp2SYsKePDqvSFE+piQQv1Ztg7CqZtPfZxFYX3YID7I=; b=GAUQPeSWLmo5c5HaMvHZ/8rCz7TCM/TJ8BEKAA41oQ/Bb49aidUAr1Yr3imA4XSsec IsVahljlNxHXy9mq1zHza1E9DA4H7z62eo7BSL/MLMvMBqwDPSnle3GUc444JKzc/ndE NClI9EuSuAuc/ELYISF7diOEZY5lFC+Lw3FtFLY+mbZpyTplXJXqb1ekrDM5s32cnvsj S5kxVlNqISO9T3pvGpUTzUIxi8EyxJkDo1ZLlxeiSWBysuYn1guw8No5pdp/QF+eID8q ThKHR45bFWYfaEkbhfvbwyrkbJ0q69wicn0c8ZbmIYcehKkCvY4/w41JgmUQGI5D55Bo Tgig== X-Gm-Message-State: AFeK/H2h5drT7jnpT5xcbsX3Hn5kE8ulpcGy0Bgmlt6J6Kabe854sNyTSd8Sg67R8G6eGkHX X-Received: by 10.28.207.14 with SMTP id f14mr420966wmg.72.1491009963997; Fri, 31 Mar 2017 18:26:03 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id 189sm4827469wmm.31.2017.03.31.18.26.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2017 18:26:02 -0700 (PDT) Subject: Re: logical replication launcher crash on buildfarm To: Robert Haas References: <20170316032833.2zxfnqe3sl3ktrbt@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> <0471e978-b121-ad2f-2879-f1694d9a5ce7@2ndquadrant.com> <2124fb62-2393-8525-4fe9-b95b1b689d09@2ndquadrant.com> <09d8ad33-4287-a09b-a77f-77f8761adb5e@2ndquadrant.com> Cc: Andres Freund , "pgsql-hackers@postgresql.org" , Petr Jelinek , Peter Eisentraut From: Petr Jelinek Message-ID: <8ebd3aa3-55eb-1106-7c10-7e7579f94582@2ndquadrant.com> Date: Sat, 1 Apr 2017 03:26:01 +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: Content-Type: text/plain; charset=utf-8 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 01/04/17 02:53, Robert Haas wrote: > On Fri, Mar 31, 2017 at 8:32 PM, Petr Jelinek > wrote: >> Right, changed to BGW_MAXLEN. > > 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. -- 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