Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chhvn-0005BO-EO for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Feb 2017 19:22:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1chhvm-0003Qo-TK for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Feb 2017 19:22:58 +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 1chhuN-0001ra-Dk for pgsql-hackers@postgresql.org; Sat, 25 Feb 2017 19:21:31 +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.84_2) (envelope-from ) id 1chhuK-0005dN-Vq for pgsql-hackers@postgresql.org; Sat, 25 Feb 2017 19:21:30 +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 v1PJLQZF024479; Sat, 25 Feb 2017 14:21:26 -0500 From: Tom Lane To: Andrew Dunstan cc: pgsql-hackers@postgresql.org, Jan Wieck Subject: Re: I propose killing PL/Tcl's "modules" infrastructure In-reply-to: <33fe0208-74df-1a03-08af-9a4f0d1ed14d@2ndQuadrant.com> References: <22067.1488046447@sss.pgh.pa.us> <234c68e3-47ee-4db1-fe6d-6a5de56575b6@2ndQuadrant.com> <23184.1488048288@sss.pgh.pa.us> <33fe0208-74df-1a03-08af-9a4f0d1ed14d@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Sat, 25 Feb 2017 13:55:26 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24477.1488050485.1@sss.pgh.pa.us> Date: Sat, 25 Feb 2017 14:21:25 -0500 Message-ID: <24478.1488050485@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andrew Dunstan writes: > On 02/25/2017 01:44 PM, Tom Lane wrote: >> Yeah, the only part that's even a bit hard to replicate in userland is >> initializing the autoloading mechanism in each session. It would be >> cleaner to provide a feature similar to what you describe that could >> be used for that purpose as well as others. However, where does the >> "parameterless function" come from? Is it a regular PLv8 (or for this >> purpose PL/Tcl) function expected to be present in pg_proc? > Yes, it's a regular PLv8 function. OK ... how do you handle security considerations? Can the GUC be set at any time/by anybody? What determines whether you have permissions to call the particular function? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers