• Tom Lane's avatar
    Remove PL/Tcl's "module" facility. · 817f2a58
    Tom Lane authored
    PL/Tcl has long had a facility whereby Tcl code could be autoloaded from
    a database table named "pltcl_modules".  However, nobody is using it, as
    evidenced by the recent discovery that it's never been fixed to work with
    standard_conforming_strings turned on.  Moreover, it's rather shaky from
    a security standpoint, and the table design is very old and crufty (partly
    because it dates from before we had TOAST).  A final problem is that
    because the table-population scripts depend on the Tcl client library
    Pgtcl, which we removed from the core distribution in 2004, it's
    impossible to create a self-contained regression test for the feature.
    Rather than try to surmount these problems, let's just remove it.
    
    A follow-on patch will provide a way to execute user-defined
    initialization code, similar to features that exist in plperl and plv8.
    With that, it will be possible to implement this feature or similar ones
    entirely in userspace, which is where it belongs.
    
    Discussion: https://postgr.es/m/22067.1488046447@sss.pgh.pa.us
    817f2a58
pltcl.sgml 34.6 KB