Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOVn7-0005jl-NY for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2017 21:39:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOVn7-0000zU-9o for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2017 21:39:13 +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 1eOVn7-0000zL-3O for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2017 21:39:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eOVn4-0006nd-Mw for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2017 21:39:12 +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 vBBLd8L9027387; Mon, 11 Dec 2017 16:39:08 -0500 From: Tom Lane To: Peter Eisentraut cc: Anthony Bykov , pgsql-hackers@lists.postgresql.org Subject: Re: Jsonb transform for pl/python In-reply-to: References: <20171025145100.3a19933f@anthony-24-g082ur> <20171113130028.32405fee@anthony-24-g082ur> <20171113150816.1377.17052.pgcf@coridan.postgresql.org> <20171120123555.546c922f@anthony-24-g082ur> <20171120134835.GA9855@e733.localdomain> <20171206144054.5664c119@anthony-24-g082ur> <881aea8c-23a4-0694-8182-72620afe84c4@2ndquadrant.com> <20171211112206.3b4ea92f@anthony-24-g082ur> Comments: In-reply-to Peter Eisentraut message dated "Mon, 11 Dec 2017 16:16:58 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27385.1513028348.1@sss.pgh.pa.us> Date: Mon, 11 Dec 2017 16:39:08 -0500 Message-ID: <27386.1513028348@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 12/11/17 03:22, Anthony Bykov wrote: >>> Why not make this part of the plpythonu extension? It doesn't have to >>> be a separate contrib module. >> I thought about that, but the problem is that there will be no >> possibilities to create custom transform if we create this extension by >> default. > OK, could it be a separate extension, but part of the same code directory? I think our makefile infrastructure only allows for one shlib to be built per directory. Admittedly, you could have two extensions sharing the same shlib (and the same regression test suite), but on the whole it's not clear to me why we should do that. regards, tom lane