Re: I propose killing PL/Tcl's "modules" infrastructure
Jim Nasby <jim.nasby@bluetreble.com>
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: <pgsql-hackers@postgresql.org>, Jan Wieck <jan@wi3ck.info>
Date: 2017-03-01T22:31:36Z
Lists: pgsql-hackers
On 2/27/17 2:42 PM, Tom Lane wrote: > + SET pltcl.start_proc = 'no_such_function'; > + select tcl_int4add(1, 2); > + ERROR: function no_such_function() does not exist Can the error message be more explicit somehow? Otherwise people will be quite confused as to where no_such_function() is coming from. <begin creature-feep> BTW, I'd think this functionality would be valuable for every PL. Maybe it's worth adding formal support for it to pg_language et all and leave it up to each language to decide whether it's supported or not? Multiple init functions might be useful too, similar to how we support multiple hook functions (though presumably a field of regproc[] is a better way to handle that...) I'm also wondering if there'd be value to supporting code that runs on each function invocation. -- Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX Experts in Analytics, Data Architecture and PostgreSQL Data in Trouble? Get it in Treble! http://BlueTreble.com 855-TREBLE2 (855-873-2532)
Commits
-
Invent start_proc parameters for PL/Tcl.
- 0d2b1f305dc7 10.0 landed
-
Remove PL/Tcl's "module" facility.
- 817f2a586342 10.0 landed
-
Remove all of the libpgtcl and pgtclsh files, including all references to
- 41fa9e9bae60 8.0.0 cited