Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jH7Ma-00077i-Mu for pgsql-general@arkaria.postgresql.org; Wed, 25 Mar 2020 14:50:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jH7MZ-00023h-Gz for pgsql-general@arkaria.postgresql.org; Wed, 25 Mar 2020 14:50:35 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jH7MZ-00023a-7C for pgsql-general@lists.postgresql.org; Wed, 25 Mar 2020 14:50:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jH7MV-0001nT-CC for pgsql-general@lists.postgresql.org; Wed, 25 Mar 2020 14:50:34 +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 02PEoSZ4020542; Wed, 25 Mar 2020 10:50:28 -0400 From: Tom Lane To: Marius Andreiana cc: pgsql-general@lists.postgresql.org Subject: Re: PostgreSQL 13: native JavaScript Procedural Language support ? In-reply-to: References: Comments: In-reply-to Marius Andreiana message dated "Wed, 25 Mar 2020 08:42:55 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20540.1585147828.1@sss.pgh.pa.us> Date: Wed, 25 Mar 2020 10:50:28 -0400 Message-ID: <20541.1585147828@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Marius Andreiana writes: > How about enabling users to do more advanced processing of JSON > data inside the database itself, using JavaScript? > There's the PLV8 extension https://github.com/plv8/plv8 > but it's not available for many major db providers (eg Heroku), making it > hard to adopt it. Having it supported in the standard PostgreSQL > distribution, besides the existing 4 languages ( > https://www.postgresql.org/docs/12/xplang.html), would be awesome! The core Postgres project doesn't have unlimited resources --- in fact, most of the time we feel desperately short of qualified developers. So we're not eager to pick up the maintenance burden for extensions that seem to be doing perfectly well on their own. (The extensions that do exist within the core distribution are largely there to make sure we don't break extensibility by accident.) Even if we did that, it would not automatically translate to downstream packagers enabling the feature; they might not want the additional dependencies. So the right thing for you to do is to lobby Heroku to include PLV8 in their offering. You'd have to convince them to support it in any case. regards, tom lane