Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci3Hq-0005KV-Gn for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Feb 2017 18:11:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ci3Hq-0000SO-3d for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Feb 2017 18:11:10 +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.84_2) (envelope-from ) id 1ci3GK-0006CJ-Fg for pgsql-hackers@postgreSQL.org; Sun, 26 Feb 2017 18:09:36 +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.84_2) (envelope-from ) id 1ci3GG-0007Ja-MW for pgsql-hackers@postgreSQL.org; Sun, 26 Feb 2017 18:09:35 +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 v1QI9Vf5014095; Sun, 26 Feb 2017 13:09:31 -0500 From: Tom Lane To: pgsql-hackers@postgreSQL.org cc: Jan Wieck Subject: Re: I propose killing PL/Tcl's "modules" infrastructure In-reply-to: <22067.1488046447@sss.pgh.pa.us> References: <22067.1488046447@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 25 Feb 2017 13:14:07 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14093.1488132571.1@sss.pgh.pa.us> Date: Sun, 26 Feb 2017 13:09:31 -0500 Message-ID: <14094.1488132571@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 I wrote: > Now, we could try to fix this bug, and add the regression test coverage > that the code clearly lacks, and upgrade the documentation about it from > its currently very sad state. But I think the right answer is just to > remove the feature altogether. BTW, I tried to poke into what it would take to write some regression test coverage, and immediately hit a show-stopper: $ pltcl_loadmod --help can't find package Pgtcl while executing "package require Pgtcl" (file "/home/postgres/testversion/bin/pltcl_loadmod" line 10) That is, these scripts depend on the old Tcl client library, which we removed from our core distro in 2004 (cf commit 41fa9e9ba). So we don't even have a way of creating self-contained tests for them. At this point I think there's no question that src/pl/tcl/modules/ needs to go away. There might be some argument for retaining the "autoload the unknown module" startup behavior in pltcl proper, but I think that Andrew Dunstan's proposal of calling an initialization function is a far cleaner solution. 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