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 1g759t-0005mm-MB for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 20:51:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g759s-0007nv-3J for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 20:51:12 +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 1g759r-0007nX-Mx for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 20:51:11 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g759o-0005Vv-SV for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 20:51:10 +0000 Received: by mail-pf1-x42a.google.com with SMTP id k21-v6so10089872pff.11 for ; Mon, 01 Oct 2018 13:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=legitimatesounding-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2Xo4EsHoyhIMaarGLPHFom4GOBf0m94cCIQke6O+ZfM=; b=PuQtyMKy/aV07wRxspezEXCnBmbMkwUNwyko98BtYpI4+USrM90pN0arNfysIlHZHs BlwO60Fj/XVDsOhJjFhTAbPWAEKDF32iKgn7iHZ9bQFkpOkw6ZA9OUmycqOKXJT5BnTc 6Ku6N8Z9AQWVMxVBeeYUAM5l0r5S7lgoakCqChsEAXjSpNFE5F0P40To9cSJ/MaOad65 mXM7R8XVd0TDgojLjrm7/f6Ax9zBMFpzNQDuYd5Hq4CNc0PrumVwOTD75UF453aGpZst G6ar3zY2KM0vUDvD0pcksLyNCEWPuHXrcMzD5IKrlYoMoAd9KBc6p+lxHgoATf1MiBVG z2Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2Xo4EsHoyhIMaarGLPHFom4GOBf0m94cCIQke6O+ZfM=; b=CbEfOFOTsstOhr5ryHZ85sloq6FcVBCyJ0bc0JKC7NaqGBQus0Ycc7DqWhayqckzSG 38NkMv1iPGeueqdhNPWImKItkIUkbwnmKvO+1oGl4Z8AZAxKgVLAMuYvkjz2RUDmGPkt pA4jRuahzMRlf+7U8dx9bWFzNPWU1Lg6rRBMdso2iGiG2IYK6Pq94AG6I8eNShkivwXu 2KemTtauQGhNuzfx/OX8osps6ttX4kEfPe5fI8xEdEfaJeqG9rclsGjoPgtBXAg8fLdw tkXudb7tZbUvI5YT/wUtd39yEDWtQwY+aT2uWUSe1O4EUEfbE94lXMDUnaT4TWoivRKU p8iw== X-Gm-Message-State: ABuFfoimLptSxGfSpzqEaUt8VI+upqRu16CUzDdEOBP/uvuaQtigq+1m XLqLIpzVX5LtWWHGvTDIZvy1bZn3gBc= X-Google-Smtp-Source: ACcGV62W6lUOXNc/LxPkHFDddMD2S3Vt1tmwE/KKEg52YaoVAb2jMb5aLbZcJSq7ql9nxIRz0ycg3w== X-Received: by 2002:a62:14ce:: with SMTP id 197-v6mr13089882pfu.50.1538427067623; Mon, 01 Oct 2018 13:51:07 -0700 (PDT) Received: from ?IPv6:2001:5b0:49d0:62c:975:116e:2429:42fa? ([2001:5b0:49d0:62c:975:116e:2429:42fa]) by smtp.gmail.com with ESMTPSA id b10-v6sm12655076pfe.148.2018.10.01.13.51.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 13:51:06 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: BUG #15414: extension compilation fails when c++ files are named with .cc From: Jerry Sievert In-Reply-To: <20181001202548.tt6xc2aqu3phakly@alap3.anarazel.de> Date: Mon, 1 Oct 2018 13:50:19 -0700 Cc: pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <0C026788-9773-4AEF-B5DD-436EDFCD489A@legitimatesounding.com> References: <15414-df6868d261e60784@postgresql.org> <20181001202548.tt6xc2aqu3phakly@alap3.anarazel.de> To: Andres Freund X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, see comments inline: > On Oct 1, 2018, at 1:25 PM, Andres Freund wrote: >=20 > 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. > 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=E2=80=99= t very many), and make a determination of what the community has chosen = to support. As an aside, .C will be problematic on filesystems that are = case-insensitive.=20 > 2) Insist that pg extensions follow PGXS rules, which atm are to use > .cpp for c++ source files. >=20 > I don't really have an opinion here. You have an obvious opinion here, and had a very strong opinion on irc.