Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g75Pl-0006WN-Fs for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 21:07:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g75Pk-0003CU-1v for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 21:07:36 +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.89) (envelope-from ) id 1g75Pi-0003C9-4r for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 21:07:35 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g75Pe-0005pw-I7 for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 21:07:32 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BE17B21FDA; Mon, 1 Oct 2018 17:07:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 01 Oct 2018 17:07:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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; s=fm2; bh=yXoJDn1Ogyu/qrjLEP0zwVyJZauhr KcwaFAeyPNWgLc=; b=uV1lCTUQfWk/EcpwfOl93sM4Zg7mVTfiBzwRgcuYHByd4 xfRKtYVJeWEqPT7weuXqoc/KZWHzdp3D3cs1fO2pWmThZgaTBNpjpcw8wniR8/nx lqnXM5rEa0OZvCt1bM3ztQmgzECpIOVaF9vMpJ41lPF1pbYvPKOoQKHtC7jAVaFE FywPyel09+Ec1vC+Ngapf1t/YDAGyH8sE+A+3LWhSIpFBilG+ZdIflevCsGzyDyX OoREQIojpxV7Wp8fqb3fzZpjM9uKPrg0xTIV0UxjbKxL/ysxA45/zFHiEEr/DeuM RGcKeu5g1fOUzGt/CDpw0IozqHwRMDjkgmIjmshMw== DKIM-Signature: v=1; a=rsa-sha256; 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; s=fm3; bh=yXoJDn 1Ogyu/qrjLEP0zwVyJZauhrKcwaFAeyPNWgLc=; b=cRms0frJ6a40Pqu9Nn5BW9 v4McPPTdMzn/yTbD4qJO8JM7fsw5mVWtMKeK3OMV+vS9jTMQptb5NMIBdBkN86Ti IKZpziQ+7UA6l1tQLl0GFps0WQ2ixC/0zu42OV+knM4P9EiiQrYWBJntbcLFVMIv uzBfZexLP45oZhW3uUYnGezYFHiOdHlti9VERSPaTF2BXCnytOFsYE2gTeE2VhLP RuzGe2RhVgmTV8NbID6wQgB59dAh2QzDHG50YK9z6txO13YH2LdhkAiTipzKRKEx pwicHiP4k3Rz/7aTycxAQdTm5oS9EdTp8UB/qNRmfXN8g45ANjRoe8Lxah+p6RuA == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id B8ABC102D7; Mon, 1 Oct 2018 17:07:27 -0400 (EDT) Date: Mon, 1 Oct 2018 14:07:26 -0700 From: Andres Freund To: Jerry Sievert Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15414: extension compilation fails when c++ files are named with .cc Message-ID: <20181001210726.yq2qjbce5ebs66cr@alap3.anarazel.de> References: <15414-df6868d261e60784@postgresql.org> <20181001202548.tt6xc2aqu3phakly@alap3.anarazel.de> <0C026788-9773-4AEF-B5DD-436EDFCD489A@legitimatesounding.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0C026788-9773-4AEF-B5DD-436EDFCD489A@legitimatesounding.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-10-01 13:50:19 -0700, Jerry Sievert wrote: > > On Oct 1, 2018, at 1:25 PM, Andres Freund wrote: > > > > > I'm a bit worried that supporting extensions that PG itself doesn't use > > Pg chose the extension .cpp, and chose it fairly recently. It seems to have been an arbitrary choice for the three files added as part of the JIT addition. Well, we had to make a choice, no? > > I guess we have two choices: > > 1) Add rules for ".cpp", ".cc", ".C", ".cxx", and ".c++" and whatever > > else we can think of. Add additional variants whenever somebody > > presents one (and backpatch it). > > This is a rather disingenuous choice. Perhaps a better approach would > be to do a quick survey of the existing c++ extensions (there aren’t > very many), and make a determination of what the community has chosen > to support. I'm not following? Are you blaming me for suggesting to few, or too many file extensions? What does make the above list disingenuous? > As an aside, .C will be problematic on filesystems that are > case-insensitive. I don't think the existance of a %.bc: %.C rule would cause problems, even on a case-insensitive system? Obviously it'd be problematic if there's such files in the external project, and that project wants to support a case-insensitive FS, but that's not really our problem as the goal is to support outside conventions, no? > > 2) Insist that pg extensions follow PGXS rules, which atm are to use > > .cpp for c++ source files. > > > > I don't really have an opinion here. > > You have an obvious opinion here, and had a very strong opinion on irc. Uh, I really don't. Perhaps you should start with the assumptions that other people aren't dealing with you in bad faith? I told you which rule to add, helped debugging it including looking at the source code of the extension, then suggested you report a bug so we can discuss a potential upstream resolution with more people? The only thing I pushed back on was that we "arbitrarily" broke stuff. Greetings, Andres Freund