Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfAVi-0003YW-OE for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Aug 2017 19:49:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dfAVi-0004Rt-1b for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Aug 2017 19:49:50 +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 1dfAVh-0004Rb-AE for pgsql-bugs@postgresql.org; Tue, 08 Aug 2017 19:49:49 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dfAVe-0002fW-Kl for pgsql-bugs@postgresql.org; Tue, 08 Aug 2017 19:49:48 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 02561210C6; Tue, 8 Aug 2017 15:49:45 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 08 Aug 2017 15:49:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=b30mOQcwn/3hvnuWYSM2+rCaKAZrrlPZcelaAZV1j7k=; b=CLs4k U5jDF7JkYTD2mNozhwJ8vJjulkAgVSRE0cJ8CbzRsWW9nT8tgGHvj8QWJiV5H3r3 5wO6QB4WVw21H4TsaSEH9PRM6ZVUFicpWbusTcVw0GElif9mmY9ZSjJVeA7zpaUd eYQ+PHIjSfldHGpEZCOpK2wOefpjVK4nbxjB5kPQuft6aHbeE5BOWDybKFBVTGrS ugwIH9DjWLtgrlycs6z7WPVLFP8Dh+IESDQ7jjQuiVLZ4ACakDgyMxIlFW1rxmiS HAkOSil+t1d14/aWmQURchXOFif0x2ay6az4AdXRWHATjdHMDrk7sOn+PMoU77OA XPG0YG2b4E0GQbq7A== X-ME-Sender: X-Sasl-enc: PaGfkdeu9ovw5LM8iPVxAAaRmoHuMxKGmFUN7yt7jdL5 1502221784 Received: from intern.anarazel.de (50-242-71-202-static.hfc.comcastbusiness.net [50.242.71.202]) by mail.messagingengine.com (Postfix) with ESMTPA id AC27D241BE; Tue, 8 Aug 2017 15:49:44 -0400 (EDT) Date: Tue, 8 Aug 2017 12:49:43 -0700 From: Andres Freund To: Rick Otten , ronan.dunklau@dalibo.com Cc: PostgreSQL mailing lists , Tom Lane , Amit Kapila , Robert Haas Message-ID: <20170808194943.smet3uuvtxats44v@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Bcc: Subject: Re: [BUGS] signal 11 segfaults with parallel workers Reply-To: In-Reply-To: Hi, (please quote "properly" on pg lists, also don't trim the CC list wholesale) On 2017-08-08 15:41:38 -0400, Rick Otten wrote: > > > Whatever it's trying to initialize in _PG_init needs to be done later. > > > > Indeed, that's bad. I am adding in CC Ronan who has been working on > > multicorn. At this stage, I think that you would be better out by > > disabling parallelism. > Just to follow up. The database has not crashed since I disabled > parallelism. As a result of that change, some of my queries are running > dramatically slower, I'm still working on doing what I can to get them back > up to reasonable performance. I look forward to a solution that allows > both FDW extensions and parallel queries to coexist in the same database. This is going to need a multicorn bugfix. This isn't a postgres bug, and other FDWs can coexist with parallelism. Therefore I unfortunately think we can't really do anything here. Perhaps, for v11, we should actually make sure there's no memory context etc set during _PG_init() to catch such problems earlier? It's a bit nasty to only see them if the shared library is preloaded and/or parallelism is in use. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs