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 1g75Y8-0006th-L4 for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 21:16:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g75Y6-0001gz-IL for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Oct 2018 21:16:14 +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 1g75Y6-0001gs-92 for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 21:16:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g75Y3-00068k-Nr for pgsql-bugs@lists.postgresql.org; Mon, 01 Oct 2018 21:16:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w91LG6so029556; Mon, 1 Oct 2018 17:16:06 -0400 From: Tom Lane To: Jerry Sievert cc: Andres Freund , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15414: extension compilation fails when c++ files are named with .cc In-reply-to: <0C026788-9773-4AEF-B5DD-436EDFCD489A@legitimatesounding.com> References: <15414-df6868d261e60784@postgresql.org> <20181001202548.tt6xc2aqu3phakly@alap3.anarazel.de> <0C026788-9773-4AEF-B5DD-436EDFCD489A@legitimatesounding.com> Comments: In-reply-to Jerry Sievert message dated "Mon, 01 Oct 2018 13:50:19 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <29554.1538428566.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 01 Oct 2018 17:16:06 -0400 Message-ID: <29555.1538428566@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jerry Sievert writes: >> On Oct 1, 2018, at 1:25 PM, Andres Freund wrote: >> 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 b= e to do a quick survey of the existing c++ extensions (there aren=E2=80=99= t very many), Andres just named five, which is about four too many. I wouldn't mind adding one more, but it's not very clear where to stop. Most of the ones he mentioned do seem to have some currency, with the possible exception of '.C' which as you say is a hazardous choice. regards, tom lane