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 1flIO4-0002lg-Se for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Aug 2018 18:31:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flIO3-0001bD-6a for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Aug 2018 18:31:47 +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 1flIO2-0001b1-S8 for pgsql-hackers@lists.postgresql.org; Thu, 02 Aug 2018 18:31:47 +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 1flIO0-0007tr-7K for pgsql-hackers@postgresql.org; Thu, 02 Aug 2018 18:31:45 +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 w72IVcWi031579; Thu, 2 Aug 2018 14:31:38 -0400 From: Tom Lane To: Andres Freund cc: Andrew Gierth , Robert Haas , Peter Geoghegan , PostgreSQL Hackers Subject: Re: Should contrib modules install .h files? In-reply-to: <20180802182144.6qrkfct47u3s2w7t@alap3.anarazel.de> References: <87o9enb4h7.fsf@news-spur.riddles.org.uk> <20180731201700.zfscje7clxiljvjl@alap3.anarazel.de> <11978.1533073999@sss.pgh.pa.us> <1836.1533221640@sss.pgh.pa.us> <87lg9oaghh.fsf@news-spur.riddles.org.uk> <25706.1533229991@sss.pgh.pa.us> <87a7q4adnk.fsf@news-spur.riddles.org.uk> <87600sabb2.fsf@news-spur.riddles.org.uk> <20180802182144.6qrkfct47u3s2w7t@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 02 Aug 2018 11:21:44 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31577.1533234698.1@sss.pgh.pa.us> Date: Thu, 02 Aug 2018 14:31:38 -0400 Message-ID: <31578.1533234698@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-08-02 19:13:05 +0100, Andrew Gierth wrote: >> And none of the plpython transforms can even parse their makefiles with >> USE_PGXS, let alone build, because they have an "include" directive >> pointing into src/pl/plpython. > FWIW, I'd be perfectly on board with just burying this policy. Designating > one contrib module (or something in src/test/examples or such) as a PGXS > example, and always building it with pgxs seems like it'd do a much > better job than the current policy. No, I think that'd be pretty wrongheaded. One of the big reasons for contrib to exist is to serve as a testbed proving that our extension features actually work. What you suggest would reduce the scope of that testing, which seems like the wrong direction to be going in. It's particularly bad for these cases, since what they demonstrate is that it's impossible to build transform modules for plperl or plpython out-of-tree at the moment. That doesn't seem to me to be something we should just ignore; it goes against not only our larger commitment to extensibility, but also the entire point of the transforms feature. regards, tom lane